diff options
author | Gerald Combs <gerald@wireshark.org> | 2006-10-18 17:55:29 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2006-10-18 17:55:29 +0000 |
commit | fc62f98e74c1c1351108d1390fd85f252ed7f199 (patch) | |
tree | 9489a4ada12122ec8d6f41321808d1f9aa90d8b9 /epan/strutil.c | |
parent | aee9a87da4fd41208b08b11654d4b0b1cd604df1 (diff) | |
download | wireshark-fc62f98e74c1c1351108d1390fd85f252ed7f199.tar.gz wireshark-fc62f98e74c1c1351108d1390fd85f252ed7f199.tar.bz2 wireshark-fc62f98e74c1c1351108d1390fd85f252ed7f199.zip |
In the 802.11 dissector, mark the "wep_keys" preference as obsolete,
and replace it with an "enable_decryption" preference.
Instead of forcing the user to specify how many WEP keys we have,
figure it out for ourselves by parsing the key list. When decrypting,
don't worry about the key index specified in the header (which resulted
in trying to decrypt using the same key twice); simply try each key in
order (which we were doing anyway).
In hex_str_to_bytes(), handle a null hex string.
Update the release notes.
svn path=/trunk/; revision=19592
Diffstat (limited to 'epan/strutil.c')
-rw-r--r-- | epan/strutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/strutil.c b/epan/strutil.c index 4ada04a2e9..6c198a3a66 100644 --- a/epan/strutil.c +++ b/epan/strutil.c @@ -431,6 +431,9 @@ hex_str_to_bytes(const char *hex_str, GByteArray *bytes, gboolean force_separato char one_digit[2]; g_byte_array_set_size(bytes, 0); + if (! hex_str) { + return FALSE; + } p = (const guchar *)hex_str; while (*p) { q = p+1; |