Commit 42fb0083 authored by Patrick Caulfield's avatar Patrick Caulfield Committed by Steven Whitehouse

[DLM] fix iovec length in recvmsg

I didn't spot that the msg_iovlen was set to 2 if there
were two elements in the iovec but left at zero if not :(

I think this might be why bob was still seeing trouble.
Signed-Off-By: default avatarPatrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent ce9e3d99
...@@ -519,6 +519,7 @@ static int receive_from_sock(void) ...@@ -519,6 +519,7 @@ static int receive_from_sock(void)
msg.msg_flags = 0; msg.msg_flags = 0;
msg.msg_control = incmsg; msg.msg_control = incmsg;
msg.msg_controllen = sizeof(incmsg); msg.msg_controllen = sizeof(incmsg);
msg.msg_iovlen = 1;
/* I don't see why this circular buffer stuff is necessary for SCTP /* I don't see why this circular buffer stuff is necessary for SCTP
* which is a packet-based protocol, but the whole thing breaks under * which is a packet-based protocol, but the whole thing breaks under
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment