From babb7a12ecb1ce4e14daeb178370e2cc27ac32a2 Mon Sep 17 00:00:00 2001 From: mpi Date: Thu, 22 Oct 2015 10:46:26 +0000 Subject: [PATCH] Do not dereference ``ifa_ifp'' when we already have an ``ifp'' pointer. --- sys/net/if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } } -- 2.20.1