Date: Mon, 29 Nov 2021 14:01:59 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260117] [libc][patch] Faulty errno for sctp_getladdrs() in net/sctp_sys_calls.c Message-ID: <bug-260117-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260117 Bug ID: 260117 Summary: [libc][patch] Faulty errno for sctp_getladdrs() in net/sctp_sys_calls.c Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: albin.hellqvist@ericsson.com Created attachment 229792 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229792&action= =3Dedit Bug patch Regarding the file (net/sctp_sys_calls.c) in libc, I believe that ENOTCONN = in sctp_getladdrs() should be placed in sctp_getpaddrs() instead. Reason is that sctp_getladdrs() is used to get local addresses which doesn't require a connection/association while sctp_getpaddrs() does. I have provided a patch, but it is untested and I haven't compiled using it. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260117-227>