from michael stevens

fix an incorrect expression to decode keydata properly


svn path=/trunk/; revision=18770
This commit is contained in:
Ronnie Sahlberg 2006-07-20 09:21:32 +00:00
parent aa98f8dadd
commit e27d8be9d3
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ dissect_eapol(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (eapol_data_len != 0) {
ti = proto_tree_add_item(eapol_tree, hf_eapol_wpa_keydes_data,
tvb, offset, eapol_data_len, FALSE);
if ((keyinfo & KEY_INFO_ENCR_KEY_DATA_MASK) ||
if ((keyinfo & KEY_INFO_ENCR_KEY_DATA_MASK) &&
!(keyinfo & KEY_INFO_KEY_TYPE_MASK)) {
/* RSN: EAPOL-Key Key Data is encrypted.
* WPA: Group Keys use encrypted Key Data.