From: David Dai <zdai-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: clsoto-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org,
zdai-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org
Subject: [PATCH 1/2] rds-tools user space part of change for rds-stress -D option failure
Date: Mon, 29 Feb 2016 19:47:25 -0600 [thread overview]
Message-ID: <1456796846-8596-2-git-send-email-zdai@linux.vnet.ibm.com> (raw)
In-Reply-To: <1456796846-8596-1-git-send-email-zdai-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
---
rds-stress.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rds-stress.c b/rds-stress.c
index 9f0623c..6632d58 100755
--- a/rds-stress.c
+++ b/rds-stress.c
@@ -1400,7 +1400,7 @@ static int recv_message(int fd,
return ret;
if (ret && ret < sizeof(struct header))
die("recvmsg() returned short data: %zd", ret);
- if (msg.msg_namelen < sizeof(struct sockaddr_in))
+ if (ret && msg.msg_namelen < sizeof(struct sockaddr_in))
die("socklen = %d < sizeof(sin) (%zu)\n",
msg.msg_namelen, sizeof(struct sockaddr_in));
--
1.7.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
next prev parent reply other threads:[~2016-03-01 1:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-01 1:47 rds-stress command with "-D" option failure David Dai
[not found] ` <1456796846-8596-1-git-send-email-zdai-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-03-01 1:47 ` David Dai [this message]
[not found] ` <1456796846-8596-2-git-send-email-zdai-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-03-01 19:03 ` [PATCH 1/2] rds-tools user space part of change for rds-stress -D " santosh shilimkar
[not found] ` <56D5E764.3050006-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2016-03-03 0:04 ` David Dai
[not found] ` <1456963464.4878.6.camel-zveeff//G6j74LnEdpXOr9eZKA5ZF4aE9RDcMeEix6s@public.gmane.org>
2016-03-03 0:15 ` santosh shilimkar
2016-03-01 1:47 ` [PATCH 2/2] rds kernel " David Dai
[not found] ` <1456796846-8596-3-git-send-email-zdai-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-03-01 18:55 ` Yuval Shaia
[not found] ` <20160301185530.GA5975-Hxa29pjIrETlQW142y8m19+IiqhCXseY@public.gmane.org>
2016-03-03 0:16 ` David Dai
2016-03-01 19:00 ` santosh shilimkar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1456796846-8596-2-git-send-email-zdai@linux.vnet.ibm.com \
--to=zdai-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
--cc=clsoto-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox