Skip to content

Commit f3b88d0

Browse files
jarodwilsonshefty
authored andcommitted
[librdmacm] fix udpong segfault on rconnect error
Before patch: [root@rdma-qe-05 librdmacm (master *)]$ udpong -s 172.31.45.4 name bytes xfers total time Gb/sec usec/xfer rconnect: No such file or directory Segmentation fault (core dumped) After patch: [root@rdma-qe-05 librdmacm (master *)]$ ./examples/udpong -s 172.31.45.4 name bytes xfers total time Gb/sec usec/xfer rconnect: No such file or directory Simple fix, just a missing goto on error, so we don't try to do things that are already expected to fail. CC: Sean Hefty <[email protected]> Signed-off-by: Jarod Wilson <[email protected]>
1 parent 1711767 commit f3b88d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/udpong.c

+1
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ static int client_connect(void)
427427
if (ret) {
428428
perror("rconnect");
429429
rs_close(rs);
430+
goto out;
430431
}
431432

432433
msg.op = msg_op_login;

0 commit comments

Comments
 (0)