aboutsummaryrefslogtreecommitdiff
path: root/contrib/ofed/libibverbs/examples/uc_pingpong.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ofed/libibverbs/examples/uc_pingpong.c')
-rw-r--r--contrib/ofed/libibverbs/examples/uc_pingpong.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ofed/libibverbs/examples/uc_pingpong.c b/contrib/ofed/libibverbs/examples/uc_pingpong.c
index d6b2c5fdc26a..5eed25a2c25f 100644
--- a/contrib/ofed/libibverbs/examples/uc_pingpong.c
+++ b/contrib/ofed/libibverbs/examples/uc_pingpong.c
@@ -247,7 +247,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx,
return NULL;
}
- if (listen(sockfd, 1)) {
+ if (listen(sockfd, 1) < 0) {
perror("listen() failed");
close(sockfd);
return NULL;