From 30050ba9d78749da0a7f5c0d6b900e5602b49c0e Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 22 Oct 2002 19:48:23 +0000 Subject: 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. --- sys/dev/ic/if_wi_ieee.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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 -- cgit v1.2.3