Created attachment 153138 [details]
The one line patch to make things right.
The function sctp_getassocid() is currently not visible to users,
though, it should be.
Please, apply the attached patch ASAP.
I have been using the obvious patch on my own systems with no ill effects
for quite some time now. I have simply forgotten to file a bug report for
The same mistake is present at least in 11.x and 10.1-stable.
Most likely it is present any and all FreeBSD versions which
have carried support for SCTP.
Fixed in https://svnweb.freebsd.org/changeset/base/280782
Thanks for reporting!