From b8c7fa9bc663cc93e4e42e366dd4fb6b773d04fd Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 12 Nov 2007 20:02:24 +0000 Subject: Don't dereference a NULL pointer. svn path=/trunk/; revision=23438 --- epan/dissectors/packet-h225.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-h225.c') diff --git a/epan/dissectors/packet-h225.c b/epan/dissectors/packet-h225.c index 5d28634161..bfec478237 100644 --- a/epan/dissectors/packet-h225.c +++ b/epan/dissectors/packet-h225.c @@ -1,7 +1,7 @@ /* Do not modify this file. */ /* It is created automatically by the ASN.1 to Wireshark dissector compiler */ /* packet-h225.c */ -/* ../../tools/asn2wrs.py -e -p h225 -c h225.cnf -s packet-h225-template H323-MESSAGES.asn */ +/* ../../tools/asn2wrs.py -e -p h225 -c ./h225.cnf -s ./packet-h225-template -D . H323-MESSAGES.asn */ /* Input file: packet-h225-template.c */ @@ -1586,7 +1586,7 @@ dissect_h225_DialedDigits(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U 1, 128, "0123456789#*,", 13, &value_tvb); - if (h225_pi->is_destinationInfo == TRUE) { + if (h225_pi && h225_pi->is_destinationInfo == TRUE) { if (value_tvb) { len = tvb_length(value_tvb); /* XXX - should this be allocated as an ephemeral string? */ -- cgit v1.2.3