summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2008-10-24 04:44:52 +0000
committerbrad <brad@openbsd.org>2008-10-24 04:44:52 +0000
commita979c2ccb5909c043ff37b78f0fcbdba2f64b42b (patch)
treea4521b4368c8751b0707057cf1935a87213c5c9e
parentanother oops. (diff)
downloadwireguard-openbsd-a979c2ccb5909c043ff37b78f0fcbdba2f64b42b.tar.xz
wireguard-openbsd-a979c2ccb5909c043ff37b78f0fcbdba2f64b42b.zip
Allow the debug printf code which is trying to retreive the interface
pointer to get at the interface name by pointing to the correct struct.
-rw-r--r--sys/net/trunklacp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/trunklacp.c b/sys/net/trunklacp.c
index 53bc15d83ff..35216d042d4 100644
--- a/sys/net/trunklacp.c
+++ b/sys/net/trunklacp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trunklacp.c,v 1.6 2008/10/15 19:12:18 blambert Exp $ */
+/* $OpenBSD: trunklacp.c,v 1.7 2008/10/24 04:44:52 brad Exp $ */
/* $NetBSD: ieee8023ad_lacp.c,v 1.3 2005/12/11 12:24:54 christos Exp $ */
/* $FreeBSD:ieee8023ad_lacp.c,v 1.15 2008/03/16 19:25:30 thompsa Exp $ */
@@ -1889,7 +1889,7 @@ lacp_dprintf(const struct lacp_port *lp, const char *fmt, ...)
va_list va;
if (lp) {
- printf("%s: ", lp->tp_if->if_xname);
+ printf("%s: ", lp->lp_ifp->if_xname);
}
va_start(va, fmt);