submitted by: archie@whistle.com
Don't search for interface addresses matching interface "NULL" it's likely to cause a page fault.. this can be triggered by the ipfw code rejecting a locally generated packet (e.g. you decide to make some network unreachable by local users)
This commit is contained in:
parent
a1eed73d33
commit
41fbdc966f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26079
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ip_icmp.c 8.2 (Berkeley) 1/4/94
|
||||
* $Id$
|
||||
* $Id: ip_icmp.c,v 1.25 1997/02/22 09:41:33 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -517,7 +517,7 @@ icmp_reflect(m)
|
||||
break;
|
||||
}
|
||||
icmpdst.sin_addr = t;
|
||||
if (ia == (struct in_ifaddr *)0)
|
||||
if ((ia == (struct in_ifaddr *)0) && m->m_pkthdr.rcvif)
|
||||
ia = (struct in_ifaddr *)ifaof_ifpforaddr(
|
||||
(struct sockaddr *)&icmpdst, m->m_pkthdr.rcvif);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user