aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/h225
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 /asn1/h225
parent3d1e81ff3d002d505b9de9232d033f6529ceceb2 (diff)
Add a couple of pointer checks.
svn path=/trunk/; revision=29301
Diffstat (limited to 'asn1/h225')
-rw-r--r--asn1/h225/packet-h225-template.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/asn1/h225/packet-h225-template.c b/asn1/h225/packet-h225-template.c
index b1d37ab51a..1894e8ba4f 100644
--- a/asn1/h225/packet-h225-template.c
+++ b/asn1/h225/packet-h225-template.c
@@ -453,7 +453,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",
@@ -487,6 +487,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) {