summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
166c7ec)
Should not matter but allows to combine the code that follows.
if (ret < 0)
goto get_next_dst;
sockfd = ret;
if (ret < 0)
goto get_next_dst;
sockfd = ret;
+ flowopt_setopts(sockfd, fo);
/*
* Reuse the address on passive sockets to avoid failure on
* restart (protocols using listen()) and when creating
/*
* Reuse the address on passive sockets to avoid failure on
* restart (protocols using listen()) and when creating
para_strerror(-ret));
break;
}
para_strerror(-ret));
break;
}
- flowopt_setopts(sockfd, fo);
if (passive) {
if (bind(sockfd, src->ai_addr, src->ai_addrlen) < 0) {
if (passive) {
if (bind(sockfd, src->ai_addr, src->ai_addrlen) < 0) {