Use X509_get0_pubkey where appropriate
[openssl.git] / crypto / x509 / x509_cmp.c
index 9d9ea4b6050d396f36ae268bd5ae85d256d18207..20834a079fc1e7f76589f2644ecac91e11af7e27 100644 (file)
@@ -432,7 +432,7 @@ int X509_chain_check_suiteb(int *perror_depth, X509 *x, STACK_OF(X509) *chain,
             rv = X509_V_ERR_SUITE_B_INVALID_VERSION;
             goto end;
         }
-        pk = X509_get_pubkey(x);
+        pk = X509_get0_pubkey(x);
         rv = check_suite_b(pk, sign_nid, &tflags);
         if (rv != X509_V_OK)
             goto end;