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:
parent
5129e2d695
commit
b70da6a246
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user