[Bug 260117] [libc][patch] Faulty errno for sctp_getladdrs() in net/sctp_sys_calls.c
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 260117] [libc][patch] Faulty errno for sctp_getladdrs() in net/sctp_sys_calls.c"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 260117] [libc][patch] Faulty errno for sctp_getladdrs() in net/sctp_sys_calls.c"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Nov 2021 14:01:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260117
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=229792&action=edit
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.
--
You are receiving this mail because:
You are the assignee for the bug.