Blame SOURCES/0001-librdmacm-fix-udpong-segfault-on-rconnect-error.patch

295003
From 2fd5322db77c0b1ff441169682e1531b0bfbae4e Mon Sep 17 00:00:00 2001
295003
From: Jarod Wilson <jarod@redhat.com>
295003
Date: Wed, 22 Jun 2016 09:12:28 -0400
295003
Subject: [PATCH librdmacm] fix udpong segfault on rconnect error
295003
295003
Before patch:
295003
[root@rdma-qe-05 librdmacm (master *)]$ udpong -s 172.31.45.4
295003
name      bytes   xfers   total       time     Gb/sec    usec/xfer
295003
rconnect: No such file or directory
295003
Segmentation fault (core dumped)
295003
295003
After patch:
295003
[root@rdma-qe-05 librdmacm (master *)]$ ./examples/udpong -s 172.31.45.4
295003
name      bytes   xfers   total       time     Gb/sec    usec/xfer
295003
rconnect: No such file or directory
295003
295003
Simple fix, just a missing goto on error, so we don't try to do things
295003
that are already expected to fail.
295003
295003
CC: Sean Hefty <sean.hefty@intel.com>
295003
Signed-off-by: Jarod Wilson <jarod@redhat.com>
295003
---
295003
 examples/udpong.c | 1 +
295003
 1 file changed, 1 insertion(+)
295003
295003
diff --git a/examples/udpong.c b/examples/udpong.c
295003
index 97713a2..6affc62 100644
295003
--- a/examples/udpong.c
295003
+++ b/examples/udpong.c
295003
@@ -427,6 +427,7 @@ static int client_connect(void)
295003
 	if (ret) {
295003
 		perror("rconnect");
295003
 		rs_close(rs);
295003
+		goto out;
295003
 	}
295003
 
295003
 	msg.op = msg_op_login;
295003
-- 
295003
1.8.3.1
295003