Set the error description to null initialy.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 6 Oct 2012 12:05:43 +0000 (14:05 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 6 Oct 2012 12:05:43 +0000 (14:05 +0200)
lib/decoding.c

index df86f85..3714979 100644 (file)
@@ -833,6 +833,9 @@ asn1_der_decoding (asn_node_t * element, const void *ider, int len,
 
   node = *element;
 
+  if (errorDescription != NULL)
+    errorDescription[0] = 0;
+
   if (node == NULL)
     return ASN1_ELEMENT_NOT_FOUND;