Fix screwup in previous commit.

This commit is contained in:
Bill Fumerola 2000-09-12 02:38:05 +00:00
parent 4a6404dfc1
commit 95d0db2b40

View File

@ -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);
}