mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Return (-1) not (ENOENT) for mac_prepare_type(), and set errno to
ENOENT instead. Reported by: "Kenneth D. Merry" <ken@kdm.org> Submitted by: Bryan Liesner <bleez@comcast.net>
This commit is contained in:
parent
bfe61e1700
commit
7ea02dcd89
1 changed files with 2 additions and 1 deletions
|
|
@ -365,7 +365,8 @@ mac_prepare_type(struct mac **mac, const char *name)
|
|||
return (mac_prepare(mac, ld->ld_labels));
|
||||
}
|
||||
|
||||
return (ENOENT); /* XXXMAC: ENOLABEL */
|
||||
errno = ENOENT;
|
||||
return (-1); /* XXXMAC: ENOLABEL */
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Reference in a new issue