mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-24 18:54:52 +00:00
Fix wrong logic, certain rules never matched.
This commit is contained in:
parent
9573c1f163
commit
ae2a1587f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14266
|
@ -11,7 +11,7 @@
|
|||
*
|
||||
* This software is provided ``AS IS'' without any warranties of any kind.
|
||||
*
|
||||
* $Id: ip_fw.c,v 1.31 1996/02/24 00:17:32 phk Exp $
|
||||
* $Id: ip_fw.c,v 1.32 1996/02/24 13:38:26 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -331,7 +331,7 @@ ip_fw_chk(m, ip, rif, dir)
|
|||
}
|
||||
|
||||
/* If a i/f addr was specified, check it */
|
||||
if ((f->fw_flg & IP_FW_F_IFNAME) && f->fw_via_ip.s_addr) {
|
||||
if (!(f->fw_flg & IP_FW_F_IFNAME) && f->fw_via_ip.s_addr) {
|
||||
int match = 0;
|
||||
|
||||
for (ia_p = ia; ia_p != NULL; ia_p = ia_p->ifa_next) {
|
||||
|
|
Loading…
Reference in a new issue