other small fix
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 20 Sep 2012 16:39:21 +0000 (18:39 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 20 Sep 2012 16:39:21 +0000 (18:39 +0200)
lib/parser_aux.c

index 1d22951..7b89355 100644 (file)
@@ -867,7 +867,10 @@ _asn1_check_identifier (ASN1_TYPE node)
          p2 = asn1_find_node (node, name2);
          if (p2 == NULL)
            {
-             _asn1_strcpy (_asn1_identifierMissing, p->value);
+             if (p->value)
+               _asn1_strcpy (_asn1_identifierMissing, p->value);
+              else
+               _asn1_strcpy (_asn1_identifierMissing, "(null)");
              return ASN1_IDENTIFIER_NOT_FOUND;
            }
        }