Fix uninitialised p error.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 24 Nov 2015 16:37:52 +0000 (16:37 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 24 Nov 2015 16:55:44 +0000 (16:55 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 63eb10a07ee29a312e50a227f5b3a290b1ad22b4)

crypto/asn1/asn1_par.c

index 21dfe0c..0ca985a 100644 (file)
@@ -135,7 +135,7 @@ static int asn1_parse2(BIO *bp, const unsigned char **pp, long length,
 
     if (depth > ASN1_PARSE_MAXDEPTH) {
             BIO_puts(bp, "BAD RECURSION DEPTH\n");
-            goto end;
+            return 0;
     }
 
     p = *pp;