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:56:02 +0000 (16:56 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 63eb10a07ee29a312e50a227f5b3a290b1ad22b4)

crypto/asn1/asn1_par.c

index 8120f26deda0f0f3afc030317a302f8640dd1a9f..e16483dea57f348433e2831eef01e464942564e4 100644 (file)
@@ -141,7 +141,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;