aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-03-09 12:11:21 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-03-09 12:11:21 +0000
commit726471b25f839b8d4feb18b3878d95e683b67c85 (patch)
treea4661d8b90dc7a0e76cd933b3d62ce416252a55b /plugins
parent6cd888718a15c8fd0456014d1642cb1a7c7ccd6b (diff)
coverity bug#42
dereverencing a null variable svn path=/trunk/; revision=17548
Diffstat (limited to 'plugins')
-rw-r--r--plugins/asn1/packet-asn1.c4
1 files changed, 3 insertions, 1 deletions
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++;