Module Name:    src
Committed By:   christos
Date:           Sat May  9 18:47:26 UTC 2015

Modified Files:
        src/sys/netinet: ip_icmp.c

Log Message:
if no address was found, don't check if it is tentative (hi Roy)


To generate a diff of this commit:
cvs rdiff -u -r1.139 -r1.140 src/sys/netinet/ip_icmp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/ip_icmp.c
diff -u src/sys/netinet/ip_icmp.c:1.139 src/sys/netinet/ip_icmp.c:1.140
--- src/sys/netinet/ip_icmp.c:1.139	Sat May  9 14:46:25 2015
+++ src/sys/netinet/ip_icmp.c	Sat May  9 14:47:26 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: ip_icmp.c,v 1.139 2015/05/09 18:46:25 christos Exp $	*/
+/*	$NetBSD: ip_icmp.c,v 1.140 2015/05/09 18:47:26 christos Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -94,7 +94,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_icmp.c,v 1.139 2015/05/09 18:46:25 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_icmp.c,v 1.140 2015/05/09 18:47:26 christos Exp $");
 
 #include "opt_ipsec.h"
 
@@ -703,7 +703,7 @@ icmp_reflect(struct mbuf *m)
 
 	/* Look for packet addressed to us */
 	INADDR_TO_IA(t, ia);
-	if (ia->ia4_flags & IN_IFF_NOTREADY)
+	if (ia && (ia->ia4_flags & IN_IFF_NOTREADY))
 		ia = NULL;
 
 	/* look for packet sent to broadcast address */

Reply via email to