Do not call icmp_error() if ipfirewall(4) denied packet.

PR:		kern/10747, kern/18382
This commit is contained in:
Ruslan Ermilov 2000-05-15 18:41:01 +00:00
parent 0e2e66b060
commit 3a06e3e02c

View File

@ -1649,6 +1649,10 @@ ip_forward(m, srcrt)
type = ICMP_SOURCEQUENCH;
code = 0;
break;
case EACCES: /* ipfw denied packet */
m_freem(mcopy);
return;
}
icmp_error(mcopy, type, code, dest, destifp);
}