git: 79952cd7649b - main - sctp: report address unavailability consistently
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 May 2025 22:26:49 UTC
The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=79952cd7649b63fa312ecafcffb719f5060929d4 commit 79952cd7649b63fa312ecafcffb719f5060929d4 Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2025-05-04 22:20:40 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2025-05-04 22:23:29 +0000 sctp: report address unavailability consistently When binding to an address, which is not available, use consistently EADDRNOTAVAIL. MFC after: 3 days --- sys/netinet/sctp_pcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 1a8a514fbf5f..9c9dd0cf3462 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -3050,7 +3050,7 @@ continue_anyway: /* GAK, more FIXME IFA lock? */ if (ifa->localifa_flags & SCTP_ADDR_IFA_UNUSEABLE) { /* Can't bind a non-existent addr. */ - error = EINVAL; + error = EADDRNOTAVAIL; SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PCB, error); goto out; }