coverity bug#42

dereverencing a null variable


svn path=/trunk/; revision=17548
This commit is contained in:
Ronnie Sahlberg 2006-03-09 12:11:21 +00:00
parent 6cd888718a
commit 726471b25f
1 changed files with 3 additions and 1 deletions

View File

@ -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++;