Skip to content

Commit

Permalink
Changed a CHECK_RES_DIE to CHECK_RES_RETURN, as the real problem will
Browse files Browse the repository at this point in the history
occur at connect!
  • Loading branch information
ftasnetamot authored and yrutschle committed Aug 15, 2024
1 parent 70a9b97 commit 2e2701d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ int bind_peer(int fd, int fd_from)
res = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &disable, sizeof(disable));
CHECK_RES_DIE(res, "setsockopt SO_REUSEADDR");
res = setsockopt(fd, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &enable, sizeof(enable));
CHECK_RES_DIE(res, "setsockopt IP_BIND_ADDRESS_NO_PORT");
CHECK_RES_RETURN(res, "setsockopt IP_BIND_ADDRESS_NO_PORT");
((struct sockaddr_in *)from.ai_addr)->sin_port = 0;
res = bind(fd, from.ai_addr, from.ai_addrlen);
CHECK_RES_RETURN(res, "bind", res);
Expand Down

0 comments on commit 2e2701d

Please sign in to comment.