From: Ed Maste Date: Thu, 23 May 2013 14:16:16 +0000 (-0400) Subject: netdev-bsd: Correct pointer use after refactoring. X-Git-Tag: sliver-openvswitch-1.10.90-3~6^2~219 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c61e1b7304ef0cca7374951d51d3c360441236c5;p=sliver-openvswitch.git netdev-bsd: Correct pointer use after refactoring. Introduced in commit 666afb55e84e9118812de81a75655ec9567b7a5b. Signed-off-by: Ed Maste Signed-off-by: Ben Pfaff --- 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 }