aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-h225.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2009-08-05 00:36:27 +0000
committerGerald Combs <gerald@wireshark.org>2009-08-05 00:36:27 +0000
commit931a75090826f12c0df1c1588affc78e10394ede (patch)
treed2ff2a14c3e2d594adf43ed9c06f01736fec0b81 /epan/dissectors/packet-h225.c
parent3d1e81ff3d002d505b9de9232d033f6529ceceb2 (diff)
Add a couple of pointer checks.
svn path=/trunk/; revision=29301
Diffstat (limited to 'epan/dissectors/packet-h225.c')
-rw-r--r--epan/dissectors/packet-h225.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/dissectors/packet-h225.c b/epan/dissectors/packet-h225.c
index 744e79187b..0a698bf518 100644
--- a/epan/dissectors/packet-h225.c
+++ b/epan/dissectors/packet-h225.c
@@ -11097,7 +11097,7 @@ static void ras_call_matching(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre
}
/* add link to response frame, if available */
- if(h225ras_call->rsp_num != 0){
+ if(h225ras_call && h225ras_call->rsp_num != 0){
proto_item *ti =
proto_tree_add_uint_format(tree, hf_h225_ras_rsp_frame, tvb, 0, 0, h225ras_call->rsp_num,
"The response to this request is in frame %u",
@@ -11131,6 +11131,10 @@ static void ras_call_matching(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre
}
h225ras_call = h225ras_call->next_call;
} while (h225ras_call != NULL) ;
+
+ if (!h225ras_call) {
+ return;
+ }
/* if this is an ACF, ARJ or DCF, DRJ, give guid to tap and make it filterable */
if (msg_category == 3 || msg_category == 5) {