1
0
Fork 0

make sure to only call sub_handle_cap if it exists

This commit is contained in:
Harald Welte 2012-01-04 21:56:42 +01:00
parent 00acf1dd5d
commit 46ead9ece6
1 changed files with 4 additions and 2 deletions

View File

@ -796,7 +796,8 @@ dissect_bertlv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
subtvb = tvb_new_subset(tvb, pos, len, len);
switch (tag) {
case 0xD0: /* proactive command */
call_dissector(sub_handle_cap, subtvb, pinfo, tree);
if (sub_handle_cap)
call_dissector(sub_handle_cap, subtvb, pinfo, tree);
break;
}
@ -930,7 +931,8 @@ dissect_gsm_apdu(guint8 ins, guint8 p1, guint8 p2, guint8 p3,
break;
case 0x14: /* TERMINAL RESPONSE */
subtvb = tvb_new_subset(tvb, offset+DATA_OFFS, p3, p3);
call_dissector(sub_handle_cap, subtvb, pinfo, tree);
if (sub_handle_cap)
call_dissector(sub_handle_cap, subtvb, pinfo, tree);
break;
case 0x70: /* MANAGE CHANNEL */
proto_tree_add_item(tree, hf_chan_op, tvb, offset-3, 1, ENC_BIG_ENDIAN);