mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
If the vhid already present, return EEXIST instead of
non-informative EINVAL.
This commit is contained in:
parent
3a2f50140c
commit
e60a0104f8
1 changed files with 1 additions and 1 deletions
|
|
@ -1504,7 +1504,7 @@ carp_set_addr(struct carp_softc *sc, struct sockaddr_in *sin)
|
|||
TAILQ_FOREACH(vr, &cif->vhif_vrs, sc_list)
|
||||
if (vr != sc && vr->sc_vhid == sc->sc_vhid) {
|
||||
CARP_UNLOCK(cif);
|
||||
error = EINVAL;
|
||||
error = EEXIST;
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue