Fix screwup in previous commit.
This commit is contained in:
parent
4a6404dfc1
commit
95d0db2b40
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65765
@ -1720,7 +1720,9 @@ check_ipfw_struct(struct ip_fw *frwl)
|
||||
}
|
||||
|
||||
if (frwl->fw_flg & (IP_FW_F_UID | IP_FW_F_GID)) {
|
||||
if (frwl->fw_prot != (IPPROTO_TCP | IPPROTO_UDP | IPPROTO_IP)) {
|
||||
if ((frwl->fw_prot != IPPROTO_TCP) &&
|
||||
(frwl->fw_prot != IPPROTO_UDP) &&
|
||||
(frwl->fw_prot != IPPROTO_IP)) {
|
||||
dprintf(("%s cannot use uid/gid logic on non-TCP/UDP\n", err_prefix));
|
||||
return (EINVAL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user