mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 01:59:01 -05:00
cap_net: fix verification of bind permission
MFC after: 5 days
This commit is contained in:
parent
88910b8b7b
commit
f45ca435bd
1 changed files with 1 additions and 1 deletions
|
|
@ -1382,7 +1382,7 @@ net_limit(const nvlist_t *oldlimits, const nvlist_t *newlimits)
|
|||
*/
|
||||
if (oldlimits == NULL)
|
||||
return (0);
|
||||
if (!hasconnect && nvlist_exists(oldlimits, LIMIT_NV_BIND))
|
||||
if (!hasbind && nvlist_exists(oldlimits, LIMIT_NV_BIND))
|
||||
return (ENOTCAPABLE);
|
||||
if (!hasconnect && nvlist_exists(oldlimits, LIMIT_NV_CONNECT))
|
||||
return (ENOTCAPABLE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue