diff options
author | rrs <rrs@FreeBSD.org> | 2008-10-18 15:56:52 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2008-10-18 15:56:52 +0000 |
commit | 0f9c2cf29a7ff9b5aececcfc618289f34b36d68f (patch) | |
tree | 7d640a094bdf2e22d7d6351bae92e11c15bd29a4 | |
parent | 62df02d109f85676201616af2d1553a46e28be7f (diff) | |
download | FreeBSD-src-0f9c2cf29a7ff9b5aececcfc618289f34b36d68f.zip FreeBSD-src-0f9c2cf29a7ff9b5aececcfc618289f34b36d68f.tar.gz |
The flags value was not always being copied out in the recv routine like it
should be.
Obtained from: Michael Tuexen
-rw-r--r-- | sys/netinet/sctputil.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 20865c4..30b84c3 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -5896,9 +5896,10 @@ release_unlocked: (no_rcv_needed == 0)) sctp_user_rcvd(stcb, &freed_so_far, hold_rlock, rwnd_req); } - if (msg_flags) - *msg_flags = out_flags; out: + if (msg_flags) { + *msg_flags = out_flags; + } if (((out_flags & MSG_EOR) == 0) && ((in_flags & MSG_PEEK) == 0) && (sinfo) && |