Only invoke verify_path() for verrevpath and versrcreach when we have an IP packet.

This commit is contained in:
Andre Oppermann 2004-08-11 11:41:11 +00:00
parent 6d8fb92d78
commit 6e234ede37

View File

@ -2200,15 +2200,15 @@ check_body:
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: