Fix mis-sized allocation in x509_vpm.c

Caught by clang scan-build. (The allocation was larger than it should have
been.)

Change-Id: Ideb800118f65aaba1ee85b7611c8a705671025a8
Reviewed-on: https://boringssl-review.googlesource.com/1340
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
David Benjamin 2014-07-25 03:51:31 -04:00 committed by Adam Langley
parent 5129e2d695
commit b70da6a246

View File

@ -109,7 +109,7 @@ X509_VERIFY_PARAM *X509_VERIFY_PARAM_new(void)
param = OPENSSL_malloc(sizeof(X509_VERIFY_PARAM)); param = OPENSSL_malloc(sizeof(X509_VERIFY_PARAM));
if (!param) if (!param)
return NULL; return NULL;
paramid = OPENSSL_malloc(sizeof(X509_VERIFY_PARAM)); paramid = OPENSSL_malloc(sizeof(X509_VERIFY_PARAM_ID));
if (!paramid) if (!paramid)
{ {
OPENSSL_free(param); OPENSSL_free(param);