CC: Gil Rockah <gilr-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Signed-off-by: Jarod Wilson <redacted>
---
src/perftest_communication.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/perftest_communication.c b/src/perftest_communication.c
index b66801c..6b3b1d9 100755
--- a/src/perftest_communication.c
+++ b/src/perftest_communication.c
@@ -686,7 +686,11 @@ static int ethernet_server_connect(struct perftest_comm *comm)
if (sockfd >= 0) {
n = 1;
- setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &n, sizeof n);
+ if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &n, sizeof n)) {
+ freeaddrinfo(res);
+ close(sockfd);
+ return 1;
+ }
if (!bind(sockfd, t->ai_addr, t->ai_addrlen))
break;
close(sockfd);--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html