diff options
-rw-r--r-- | packet-gsm_sim.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-gsm_sim.c b/packet-gsm_sim.c index a2bc97c..e416ac7 100644 --- a/packet-gsm_sim.c +++ b/packet-gsm_sim.c @@ -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); |