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 21dfe0c49eb2734da1db9c8f3176b49c62931926..0ca985a2be1e700e0def0c7ad02e2b16568fd2a0 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;