diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wimax/packet-wmx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wimax/packet-wmx.c b/plugins/wimax/packet-wmx.c index 4e881f05f1..c4b15c8870 100644 --- a/plugins/wimax/packet-wmx.c +++ b/plugins/wimax/packet-wmx.c @@ -630,7 +630,7 @@ proto_tree *add_tlv_subtree(tlv_info_t *self, gint idx, proto_tree *tree, int hf /* display the TLV name and display the value in hex. Highlight type, length, and value. */ tlv_item = proto_tree_add_item(tree, hfindex, tvb, start, tlv_value_length, little_endian); - if (!PITEM_FINFO(tlv_item)) + if ((tlv_item == NULL) || (!PITEM_FINFO(tlv_item))) return tree; /* Correct the highlighting. */ @@ -729,7 +729,7 @@ proto_tree *add_protocol_subtree(tlv_info_t *self, gint idx, proto_tree *tree, i va_end(ap); tlv_item = proto_tree_add_protocol_format(tree, hfindex, tvb, start, length, "%s", message); - if (!PITEM_FINFO(tlv_item)) + if ((tlv_item == NULL) || (!PITEM_FINFO(tlv_item))) return tree; /* Correct the highlighting. */ |