From 9a9deae382c566f29bf3f4c70261ca0a7a3e1daa Mon Sep 17 00:00:00 2001 From: dyoung Date: Wed, 20 Nov 2002 03:52:08 +0000 Subject: [PATCH] Squash a panic: do not try to print the name of a NULL interface. --- sys/netinet/if_arp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netinet/if_arp.c b/sys/netinet/if_arp.c index 4363be9beceb..bf2b5d78aa1c 100644 --- a/sys/netinet/if_arp.c +++ b/sys/netinet/if_arp.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_arp.c,v 1.90 2002/11/02 07:28:11 perry Exp $ */ +/* $NetBSD: if_arp.c,v 1.91 2002/11/20 03:52:08 dyoung Exp $ */ /*- * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. @@ -79,7 +79,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.90 2002/11/02 07:28:11 perry Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.91 2002/11/20 03:52:08 dyoung Exp $"); #include "opt_ddb.h" #include "opt_inet.h" @@ -1172,7 +1172,7 @@ arplookup(m, addr, create, proxy) log(LOG_DEBUG, "arplookup: unable to enter address" " for %s@%s on %s (%s)\n", in_fmtaddr(*addr), lla_snprintf(ar_sha(ah), ah->ar_hln), - ifp->if_xname, why); + (ifp) ? ifp->if_xname : 0, why); return (0); }