]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the handling of ancillary data for SCTP socket. Implement
authorMichael Tuexen <tuexen@FreeBSD.org>
Sun, 30 Sep 2018 16:21:31 +0000 (16:21 +0000)
committerMichael Tuexen <tuexen@FreeBSD.org>
Sun, 30 Sep 2018 16:21:31 +0000 (16:21 +0000)
commit81846484257fbf53b2bdeadc71d57601a96098b1
tree604416feaf4dd99277671400e830c2083172102a
parentae0a9a88504a1a2adb6ff3ab3a5d83084540087b
Fix the handling of ancillary data for SCTP socket. Implement
sctp_process_cmsgs_for_init() and sctp_findassociation_cmsgs()
similar to sctp_find_cmsg() to improve consistency and avoid
the signed/unsigned issues in sctp_process_cmsgs_for_init()
and sctp_findassociation_cmsgs().

Thanks to andrew@ for reporting the problem he found using
syzcaller.

Approved by:            re (kib@)
MFC after:              1 week
sys/netinet/sctp_output.c