svn commit: r360742 - stable/11/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Thu May 7 02:06:37 UTC 2020
Author: tuexen
Date: Thu May 7 02:06:37 2020
New Revision: 360742
URL: https://svnweb.freebsd.org/changeset/base/360742
Log:
MFC r353119: Fix padding of COOKIE_ECHO chunks
Fix the adding of padding to COOKIE-ECHO chunks.
Thanks to Mark Wodrich who found this issue while fuzz testing the
usrsctp stack and reported the issue in
https://github.com/sctplab/usrsctp/issues/382
Modified:
stable/11/sys/netinet/sctp_output.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netinet/sctp_output.c
==============================================================================
--- stable/11/sys/netinet/sctp_output.c Thu May 7 02:03:25 2020 (r360741)
+++ stable/11/sys/netinet/sctp_output.c Thu May 7 02:06:37 2020 (r360742)
@@ -9053,8 +9053,7 @@ sctp_send_cookie_echo(struct mbuf *m,
pad = 4 - pad;
}
if (pad > 0) {
- cookie = sctp_pad_lastmbuf(cookie, pad, NULL);
- if (cookie == NULL) {
+ if (sctp_pad_lastmbuf(cookie, pad, NULL) == NULL) {
return (-8);
}
}
More information about the svn-src-stable-11
mailing list