diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-07-26 08:49:15 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-07-26 08:49:15 +0200 |
commit | 8bf3ef1887b3f6733d0c4916c84d3822549ec2d4 (patch) | |
tree | 18157b24282c138b46540a1bb49cfaebf48a4895 | |
parent | 5de17f0ab5794a819487d2bed799384f85481fb3 (diff) | |
download | libtasn1-8bf3ef1887b3f6733d0c4916c84d3822549ec2d4.tar.gz |
parser_aux: corrected potential null pointer dereferences
-rw-r--r-- | lib/parser_aux.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/parser_aux.c b/lib/parser_aux.c index 2285b20..12ee16f 100644 --- a/lib/parser_aux.c +++ b/lib/parser_aux.c @@ -637,7 +637,7 @@ _asn1_change_integer_value (asn1_node node) p = NULL; break; } - if (p->right) + if (p && p->right) { p = p->right; break; @@ -753,7 +753,7 @@ _asn1_expand_object_id (asn1_node node) if (move == RIGHT) { - if (p->right) + if (p && p->right) p = p->right; else move = UP; @@ -828,7 +828,7 @@ _asn1_expand_object_id (asn1_node node) if (move == RIGHT) { - if (p->right) + if (p && p->right) p = p->right; else move = UP; @@ -898,7 +898,7 @@ _asn1_type_set_config (asn1_node node) if (move == RIGHT) { - if (p->right) + if (p && p->right) p = p->right; else move = UP; @@ -1007,7 +1007,7 @@ _asn1_check_identifier (asn1_node node) p = NULL; break; } - if (p->right) + if (p && p->right) { p = p->right; break; @@ -1067,7 +1067,7 @@ _asn1_set_default_tag (asn1_node node) p = NULL; break; } - if (p->right) + if (p && p->right) { p = p->right; break; |