Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet if no address was found, don't check if it is te...



details:   https://anonhg.NetBSD.org/src/rev/3aa0b0176907
branches:  trunk
changeset: 808212:3aa0b0176907
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 09 18:47:26 2015 +0000

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

diffstat:

 sys/netinet/ip_icmp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c21ba8f032d0 -r 3aa0b0176907 sys/netinet/ip_icmp.c
--- a/sys/netinet/ip_icmp.c     Sat May 09 18:46:25 2015 +0000
+++ b/sys/netinet/ip_icmp.c     Sat May 09 18:47:26 2015 +0000
@@ -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 @@
 
        /* 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 */



Home | Main Index | Thread Index | Old Index