diff --git a/crypto/x509/x509_vpm.c b/crypto/x509/x509_vpm.c index 1841335b..4699d054 100644 --- a/crypto/x509/x509_vpm.c +++ b/crypto/x509/x509_vpm.c @@ -109,7 +109,7 @@ X509_VERIFY_PARAM *X509_VERIFY_PARAM_new(void) param = OPENSSL_malloc(sizeof(X509_VERIFY_PARAM)); if (!param) return NULL; - paramid = OPENSSL_malloc(sizeof(X509_VERIFY_PARAM)); + paramid = OPENSSL_malloc(sizeof(X509_VERIFY_PARAM_ID)); if (!paramid) { OPENSSL_free(param);