summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2003-11-05 04:16:48 +0000
committerBrian Feldman <green@FreeBSD.org>2003-11-05 04:16:48 +0000
commit5c8bb90bf7268afbc9e28ccac23cae1fdaf73a4c (patch)
treec8b64afeb45c08d67d4b6339d0cb867471c49ba6 /sys
parentdfde7834108e4ec3ae266f7375243aeb02dc4e6b (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c
index 6065a524fe86..c6cfa7c826c3 100644
--- a/sys/net80211/ieee80211_ioctl.c
+++ b/sys/net80211/ieee80211_ioctl.c
@@ -777,7 +777,7 @@ ieee80211_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
}
len = (u_int) ic->ic_nw_keys[kid].wk_len;
/* NB: only root can read WEP keys */
- if (suser(curthread)) {
+ if (suser(curthread) == 0) {
bcopy(ic->ic_nw_keys[kid].wk_key, tmpkey, len);
} else {
bzero(tmpkey, len);