aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/rtse
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2007-09-05 07:35:59 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2007-09-05 07:35:59 +0000
commitad1b52310a0017e918a26174f7b25b8ba58f526c (patch)
tree400e139540a800cba7c5f5a2e1188528011864a2 /asn1/rtse
parent02e0c97eed81ea4c101ca3fb0bcb4cc42da61bd2 (diff)
Check object_identifier_id before use.
svn path=/trunk/; revision=22794
Diffstat (limited to 'asn1/rtse')
-rw-r--r--asn1/rtse/rtse.cnf5
1 files changed, 3 insertions, 2 deletions
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