Only invoke verify_path() for verrevpath and versrcreach when we have an IP packet.
This commit is contained in:
parent
dd8a1c6e2a
commit
957506e985
@ -2200,15 +2200,15 @@ ipfw_chk(struct ip_fw_args *args)
|
||||
|
||||
case O_VERREVPATH:
|
||||
/* Outgoing packets automatically pass/match */
|
||||
match = ((oif != NULL) ||
|
||||
match = (hlen > 0 && ((oif != NULL) ||
|
||||
(m->m_pkthdr.rcvif == NULL) ||
|
||||
verify_path(src_ip, m->m_pkthdr.rcvif));
|
||||
verify_path(src_ip, m->m_pkthdr.rcvif)));
|
||||
break;
|
||||
|
||||
case O_VERSRCREACH:
|
||||
/* Outgoing packets automatically pass/match */
|
||||
match = ((oif != NULL) ||
|
||||
verify_path(src_ip, NULL));
|
||||
match = (hlen > 0 && ((oif != NULL) ||
|
||||
verify_path(src_ip, NULL)));
|
||||
break;
|
||||
|
||||
case O_ANTISPOOF:
|
||||
|
Loading…
Reference in New Issue
Block a user