summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2007-06-12 00:52:40 +0000
committerthompsa <thompsa@FreeBSD.org>2007-06-12 00:52:40 +0000
commitec6a039b6248e377ab0e0a872c4725b320c268b7 (patch)
tree8f85b64dd543646a7aa33c5b7d15711bade8a6a6 /sbin
parent00b02345d424dac8a490ff28ff75fd9386196583 (diff)
downloadFreeBSD-src-ec6a039b6248e377ab0e0a872c4725b320c268b7.zip
FreeBSD-src-ec6a039b6248e377ab0e0a872c4725b320c268b7.tar.gz
Reset the pointer to the ioctl buffer after it gets changed.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ifconfig/ifieee80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index f09e733..1f09879 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -2200,6 +2200,7 @@ ieee80211_status(int s)
get_chaninfo(c, 1, buf, sizeof(buf)));
} else if (verbose)
printf(" channel UNDEF");
+ ireq.i_data = &data; /* reset data buffer */
ireq.i_type = IEEE80211_IOC_BSSID;
ireq.i_len = IEEE80211_ADDR_LEN;
@@ -2322,6 +2323,7 @@ ieee80211_status(int s)
firstkey = 0;
}
}
+ ireq.i_data = &data; /* reset data buffer */
}
ireq.i_type = IEEE80211_IOC_POWERSAVE;
OpenPOWER on IntegriCloud