diff options
Diffstat (limited to 'src/daemon/https/minitasn1/coding.c')
-rw-r--r-- | src/daemon/https/minitasn1/coding.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/daemon/https/minitasn1/coding.c b/src/daemon/https/minitasn1/coding.c index 385577a0..af28be4c 100644 --- a/src/daemon/https/minitasn1/coding.c +++ b/src/daemon/https/minitasn1/coding.c | |||
@@ -626,8 +626,9 @@ _asn1_ordering_set (unsigned char *der, int der_len, node_asn * node) | |||
626 | return; | 626 | return; |
627 | 627 | ||
628 | p = node->down; | 628 | p = node->down; |
629 | while ((type_field (p->type) == TYPE_TAG) | 629 | while ( (p != NULL) && |
630 | || (type_field (p->type) == TYPE_SIZE)) | 630 | ((type_field (p->type) == TYPE_TAG) |
631 | || (type_field (p->type) == TYPE_SIZE)) ) | ||
631 | p = p->right; | 632 | p = p->right; |
632 | 633 | ||
633 | if ((p == NULL) || (p->right == NULL)) | 634 | if ((p == NULL) || (p->right == NULL)) |