diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-03-30 18:52:09 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-03-30 18:52:09 +0000 |
commit | fa673eef8bdcf15c2cb99774cc6f4f74f57fa31b (patch) | |
tree | 16ab33de13b884d2bba9a46a58f49b26a09f9786 /sys/dev/ic/if_wi.c | |
parent | 035d83f1ea3272b966e18af74bfbbc6db998794e (diff) |
missing suser on SIOCS80211NWID
Diffstat (limited to 'sys/dev/ic/if_wi.c')
-rw-r--r-- | sys/dev/ic/if_wi.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c index 7b450873324..536704fe7bb 100644 --- a/sys/dev/ic/if_wi.c +++ b/sys/dev/ic/if_wi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi.c,v 1.28 2002/03/30 18:49:28 markus Exp $ */ +/* $OpenBSD: if_wi.c,v 1.29 2002/03/30 18:52:08 markus Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG; #if !defined(lint) && !defined(__OpenBSD__) static const char rcsid[] = - "$OpenBSD: if_wi.c,v 1.28 2002/03/30 18:49:28 markus Exp $"; + "$OpenBSD: if_wi.c,v 1.29 2002/03/30 18:52:08 markus Exp $"; #endif /* lint */ #ifdef foo @@ -1330,6 +1330,9 @@ wi_ioctl(ifp, command, data) } break; case SIOCS80211NWID: + error = suser(p->p_ucred, &p->p_acflag); + if (error) + break; error = copyin(ifr->ifr_data, &nwid, sizeof(nwid)); if (error != 0) break; |