diff options
author | billf <billf@FreeBSD.org> | 2000-09-12 02:38:05 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 2000-09-12 02:38:05 +0000 |
commit | 541dc0d9da0c9e71461f60d9f0d3ca03601ba3c1 (patch) | |
tree | 4e6875316f4a40a58ac5844b3ab1cd9c1fd51fad /sys/netinet/ip_fw.c | |
parent | 24501ccc60b14ae8c1a8c0c4fc146d98cdb7f75b (diff) | |
download | FreeBSD-src-541dc0d9da0c9e71461f60d9f0d3ca03601ba3c1.zip FreeBSD-src-541dc0d9da0c9e71461f60d9f0d3ca03601ba3c1.tar.gz |
Fix screwup in previous commit.
Diffstat (limited to 'sys/netinet/ip_fw.c')
-rw-r--r-- | sys/netinet/ip_fw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c index 2e2bdd3..ab12178 100644 --- a/sys/netinet/ip_fw.c +++ b/sys/netinet/ip_fw.c @@ -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); } |