From: mpi Date: Thu, 22 Oct 2015 10:46:26 +0000 (+0000) Subject: Do not dereference ``ifa_ifp'' when we already have an ``ifp'' pointer. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=babb7a12ecb1ce4e14daeb178370e2cc27ac32a2;p=openbsd Do not dereference ``ifa_ifp'' when we already have an ``ifp'' pointer. --- diff --git a/sys/net/if.c b/sys/net/if.c index 23f79b01fef..7ea0265100f 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.389 2015/10/12 13:17:58 dlg Exp $ */ +/* $OpenBSD: if.c,v 1.390 2015/10/22 10:46:26 mpi Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -2527,7 +2527,7 @@ ifa_print_all(void) break; #endif } - printf(" on %s\n", ifa->ifa_ifp->if_xname); + printf(" on %s\n", ifp->if_xname); } } }