From 726471b25f839b8d4feb18b3878d95e683b67c85 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 9 Mar 2006 12:11:21 +0000 Subject: [PATCH] coverity bug#42 dereverencing a null variable svn path=/trunk/; revision=17548 --- plugins/asn1/packet-asn1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c index f38f6bbc66..825c567b26 100644 --- a/plugins/asn1/packet-asn1.c +++ b/plugins/asn1/packet-asn1.c @@ -4567,7 +4567,9 @@ getPDUprops(PDUprops *out, guint offset, guint class, guint tag, guint cons) if (asn1_verbose) g_message(" immediate choice [push], %c%d, %s", tag_class[info->tclass], info->tag, GETNAME); - pos.node = makechoice(pos.node, class, tag); + if (pos.node) { + pos.node = makechoice(pos.node, class, tag); + } if (pos.node == 0) { pos = POPSTATE; PDUerrcount++;