Do not dereference ``ifa_ifp'' when we already have an ``ifp'' pointer.
authormpi <mpi@openbsd.org>
Thu, 22 Oct 2015 10:46:26 +0000 (10:46 +0000)
committermpi <mpi@openbsd.org>
Thu, 22 Oct 2015 10:46:26 +0000 (10:46 +0000)
sys/net/if.c

index 23f79b0..7ea0265 100644 (file)
@@ -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);
                }
        }
 }