From c61e1b7304ef0cca7374951d51d3c360441236c5 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 23 May 2013 10:16:16 -0400 Subject: [PATCH] netdev-bsd: Correct pointer use after refactoring. Introduced in commit 666afb55e84e9118812de81a75655ec9567b7a5b. Signed-off-by: Ed Maste Signed-off-by: Ben Pfaff --- lib/netdev-bsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c index 1301aad08..87ac79f92 100644 --- a/lib/netdev-bsd.c +++ b/lib/netdev-bsd.c @@ -1705,9 +1705,9 @@ static int ifr_get_flags(const struct ifreq *ifr) { #ifdef HAVE_STRUCT_IFREQ_IFR_FLAGSHIGH - return (ifr.ifr_flagshigh << 16) | ifr.ifr_flags; + return (ifr->ifr_flagshigh << 16) | ifr->ifr_flags; #else - return ifr.ifr_flags; + return ifr->ifr_flags; #endif } -- 2.45.2