aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/x509.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/x509.c b/apps/x509.c
index 27a928c103..6f72f82c8b 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -604,7 +604,8 @@ int x509_main(int argc, char **argv)
}
if (badsig) {
- ASN1_BIT_STRING *signature;
+ const ASN1_BIT_STRING *signature;
+
X509_get0_signature(&signature, NULL, x);
corrupt_signature(signature);
}