Don't call dissect_custom_message() when it's not initialized.
svn path=/trunk/; revision=44646
This commit is contained in:
parent
8f7de2ba4e
commit
64fa3d4036
|
@ -2383,7 +2383,7 @@ dissect_llrp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
||||||
guint32 spec_id, vendor;
|
guint32 spec_id, vendor;
|
||||||
proto_item *request_item, *antenna_item, *gpi_item, *gpo_item;
|
proto_item *request_item, *antenna_item, *gpi_item, *gpo_item;
|
||||||
guint (*dissect_custom_message)(tvbuff_t *tvb,
|
guint (*dissect_custom_message)(tvbuff_t *tvb,
|
||||||
packet_info *pinfo, proto_tree *tree, guint offset);
|
packet_info *pinfo, proto_tree *tree, guint offset) = NULL;
|
||||||
|
|
||||||
ends_with_parameters = FALSE;
|
ends_with_parameters = FALSE;
|
||||||
switch (type)
|
switch (type)
|
||||||
|
@ -2562,7 +2562,8 @@ dissect_llrp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
||||||
ends_with_parameters = TRUE;
|
ends_with_parameters = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
offset = dissect_custom_message(tvb, pinfo, tree, offset);
|
if (dissect_custom_message)
|
||||||
|
offset = dissect_custom_message(tvb, pinfo, tree, offset);
|
||||||
break;
|
break;
|
||||||
/* Some have no extra data expected */
|
/* Some have no extra data expected */
|
||||||
case LLRP_TYPE_KEEPALIVE:
|
case LLRP_TYPE_KEEPALIVE:
|
||||||
|
|
Loading…
Reference in New Issue