mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
sctp: report address unavailability consistently
When binding to an address, which is not available, use consistently EADDRNOTAVAIL. MFC after: 3 days
This commit is contained in:
parent
38eb41a389
commit
79952cd764
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue