summaryrefslogtreecommitdiff
path: root/sbin/ifconfig/ifconfig.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-06-14 18:46:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-06-14 18:46:22 +0000
commit060a26f3ec66871713629a7599570fc22edb4d52 (patch)
tree3ebe717221da8e7ad623ec255e89edce938d84d9 /sbin/ifconfig/ifconfig.c
parente5f21831749319be6a03711223bde4ff78570591 (diff)
unused var, wrong check for too many keys; mrd@alkemio.org
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r--sbin/ifconfig/ifconfig.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index f747df6756d..84fee5d09a6 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.165 2006/06/11 18:47:58 jmc Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.166 2006/06/14 18:46:21 deraadt Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -1334,7 +1334,6 @@ void
setifnwkey(const char *val, int d)
{
int i, len;
- char *cp = NULL;
struct ieee80211_nwkey nwkey;
u_int8_t keybuf[IEEE80211_WEP_NKID][16];
@@ -1372,7 +1371,7 @@ setifnwkey(const char *val, int d)
nwkey.i_key[i].i_keylen = len;
nwkey.i_key[i].i_keydat = keybuf[i];
}
- if (cp != NULL) {
+ if (*val != '\0') {
warnx("SIOCS80211NWKEY: too many keys.");
return;
}