diff mbox

[4/5,librdmacm] rstream: added missing return is accept() failed

Message ID 1349785672-1921-5-git-send-email-dotanb@dev.mellanox.co.il (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Dotan Barak Oct. 9, 2012, 12:27 p.m. UTC
Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
---
 examples/rstream.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/examples/rstream.c b/examples/rstream.c
index 6ef60a1..d65c48d 100644
--- a/examples/rstream.c
+++ b/examples/rstream.c
@@ -464,6 +464,7 @@  static int server_connect(void)
 	if (rs < 0) {
 		ret = rs;
 		perror("raccept");
+		return ret;
 	}
 
 	if (use_fork)