d2i: don't update input pointer on failure
[openssl.git] / crypto / asn1 / t_x509.c
index 4c9bf2c08783e6651de3ba1ea9af793e039b5d46..8aab55130c954580d3b6cdbacc485a791153d599 100644 (file)
@@ -164,7 +164,7 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags,
     }
 
     if (!(cflag & X509_FLAG_NO_SIGNAME)) {
-        if (X509_signature_print(bp, x->sig_alg, NULL) <= 0)
+        if (X509_signature_print(bp, ci->signature, NULL) <= 0)
             goto err;
 #if 0
         if (BIO_printf(bp, "%8sSignature Algorithm: ", "") <= 0)