diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-10-22 19:48:23 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-10-22 19:48:23 +0000 |
commit | 30050ba9d78749da0a7f5c0d6b900e5602b49c0e (patch) | |
tree | bd1ec98e92edf9f9caadbc13eba466050e3dc321 /sys | |
parent | 4fcb23f8bb77ebbb48d8542a3611b4e329c351f6 (diff) |
Make wi_keydat in struct wi_key 13 bytes, not 14. This is not a
NUL-terminated string and 13 bytes is what you need for a 104-bit
WEP key. This fixes an off-by-one comparison in wi_set_nwkey().
mickey@ OK.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/if_wi_ieee.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/if_wi_ieee.h b/sys/dev/ic/if_wi_ieee.h index e2b2e238596..a164e612311 100644 --- a/sys/dev/ic/if_wi_ieee.h +++ b/sys/dev/ic/if_wi_ieee.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi_ieee.h,v 1.14 2002/10/11 13:31:49 millert Exp $ */ +/* $OpenBSD: if_wi_ieee.h,v 1.15 2002/10/22 19:48:22 millert Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -270,7 +270,7 @@ struct wi_counters { struct wi_key { u_int16_t wi_keylen; - u_int8_t wi_keydat[14]; + u_int8_t wi_keydat[13]; }; #define WI_NLTV_KEYS 4 |