diff options
author | tuexen <tuexen@FreeBSD.org> | 2012-04-30 08:44:21 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2012-04-30 08:44:21 +0000 |
commit | e42771f14b28a959f5c15165f5047db0314f9d98 (patch) | |
tree | a34f71ada76b4f8a07f75455e9a3d32d3659e43c /sys/netinet/sctp_usrreq.c | |
parent | 060cbbeaf6da991973f5d765d64198e384eeb582 (diff) | |
download | FreeBSD-src-e42771f14b28a959f5c15165f5047db0314f9d98.zip FreeBSD-src-e42771f14b28a959f5c15165f5047db0314f9d98.tar.gz |
Add support for missing gauth_number_of_chunks field. This Bug was
found by Irene Ruengeler.
MFC after: 1 week
Diffstat (limited to 'sys/netinet/sctp_usrreq.c')
-rw-r--r-- | sys/netinet/sctp_usrreq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c index 83585d9..e5d793b 100644 --- a/sys/netinet/sctp_usrreq.c +++ b/sys/netinet/sctp_usrreq.c @@ -2879,6 +2879,7 @@ flags_out: } else { /* copy in the chunks */ (void)sctp_serialize_auth_chunks(chklist, sac->gauth_chunks); + sac->gauth_number_of_chunks = (uint32_t) size; *optsize = sizeof(struct sctp_authchunks) + size; } SCTP_TCB_UNLOCK(stcb); @@ -2897,6 +2898,7 @@ flags_out: } else { /* copy in the chunks */ (void)sctp_serialize_auth_chunks(chklist, sac->gauth_chunks); + sac->gauth_number_of_chunks = (uint32_t) size; *optsize = sizeof(struct sctp_authchunks) + size; } SCTP_INP_RUNLOCK(inp); @@ -2927,6 +2929,7 @@ flags_out: } else { /* copy in the chunks */ (void)sctp_serialize_auth_chunks(chklist, sac->gauth_chunks); + sac->gauth_number_of_chunks = (uint32_t) size; *optsize = sizeof(struct sctp_authchunks) + size; } SCTP_TCB_UNLOCK(stcb); |