From ad1b52310a0017e918a26174f7b25b8ba58f526c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Wed, 5 Sep 2007 07:35:59 +0000 Subject: Check object_identifier_id before use. svn path=/trunk/; revision=22794 --- asn1/rtse/rtse.cnf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'asn1') diff --git a/asn1/rtse/rtse.cnf b/asn1/rtse/rtse.cnf index c8183ea7a7..d713930e5b 100644 --- a/asn1/rtse/rtse.cnf +++ b/asn1/rtse/rtse.cnf @@ -121,13 +121,14 @@ EXTERNALt /* look up the indirect reference */ if((oid = find_oid_by_pres_ctx_id(actx->pinfo, indir_ref)) != NULL) { object_identifier_id = ep_strdup_printf("%%s", oid); - } else { + } else if (object_identifier_id) { *object_identifier_id = '\0'; } #.FN_BODY EXTERNALt/encoding/single-ASN1-type - offset=call_rtse_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, top_tree); + if (object_identifier_id) + offset=call_rtse_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, top_tree); #.FN_BODY RTORQapdu/applicationProtocol -- cgit v1.2.3