IEEE 802.11: avoid a "Null pointer passed to bytes_to_str()" error
Change-Id: I221d0bf489ef3eef32d931e4832ce0d8b155ae22 Reviewed-on: https://code.wireshark.org/review/34940 Petri-Dish: Pascal Quantin <pascal@wireshark.org> Reviewed-by: Pascal Quantin <pascal@wireshark.org>
This commit is contained in:
parent
c4bd5222f5
commit
ddb86b9237
|
@ -14143,7 +14143,8 @@ dissect_vendor_ie_aruba(proto_item *item, proto_tree *ietree,
|
|||
default:
|
||||
proto_tree_add_item(ietree, hf_ieee80211_vs_aruba_data, tvb, offset,
|
||||
tag_len, ENC_NA);
|
||||
proto_item_append_text(item, " (Data: %s)", tvb_bytes_to_str(wmem_packet_scope(), tvb, offset, tag_len));
|
||||
if (tag_len > 0)
|
||||
proto_item_append_text(item, " (Data: %s)", tvb_bytes_to_str(wmem_packet_scope(), tvb, offset, tag_len));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue