From nobody Mon Nov 29 14:01:59 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0EA6718C6012 for ; Mon, 29 Nov 2021 14:02:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2n8l3MwGz3KKK for ; Mon, 29 Nov 2021 14:01:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 53AA623B0F for ; Mon, 29 Nov 2021 14:01:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1ATE1xmh021069 for ; Mon, 29 Nov 2021 14:01:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ATE1xKs021068 for bugs@FreeBSD.org; Mon, 29 Nov 2021 14:01:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Mon, 29 Nov 2021 14:01:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: albin.hellqvist@ericsson.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638194519; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uq9KbmTzSPHfjyf4WosDaAejAHg5JTfGIBTpPD55vNY=; b=TFUD/cKs0GJy5Nl/WSSjPlFPtQutDj/M0q+IwRpp+4TJTTT2IJjiNZ2zRtIjOweMa7WliZ 99cJUfsc6Lg5dyyTqESu6ldul3F6zHnwWuh6nm4UzOR8AkHuJTEYvfH+rmNSr6iHSNxQDP 6Jbb1Z1vmiRPV91bMFnSTUZW7TGNwOvXPfUzSwx59rmYkeb6Rx32HFII3+GT4+DC/XGCmt L0oHR1dt0fDxEtLwLpiu5vyirSQXmHE87j7aLmu2Ht0qJjAmR1067kflYgker5+YytPm8S VdWmoBAK/wxvN3zm3CW0thq5fruK+Q4dD+wRrhkYrAiD3vTRAvIKKJcgtldFsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638194519; a=rsa-sha256; cv=none; b=qqsSpHyFtl5i5tmqVOpZP71HEMItWYIbXw9tdyQrITrto9fhD6WeJgn4qBSfjq/bhMNGIQ WvjmpaIeNa4iS9/hmG83AcO0LyjsiiM3PxsNzXs5WldXOMFsPX7DJpnsZs5g/FGzuFyFWO q9kfKfQIga+lBJf2vaj8bEkLLl59KYuSmL+HX8e6/cD+4MSJPZRhl0jjoi62G4ND6lXiwa bSwamJb7Wvz5R2NLZGbLfQu9F8MvpHCvnSQ9aa222zGiq5c2jRxUCn9o0XoNsSnb7/V78k EJ/4d87CUhZCteaU7/83NOpn+zbdJqJ7hlBgeSmTsbq9v275CJo46lCdugU0UQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=