Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2014-07-25 11:51:31 +0400
committerAdam Langley <agl@google.com>2014-07-30 04:33:49 +0400
commitb70da6a246d5da0e67696834bab0094a29954523 (patch)
treeb69dcfd5872cdf10685efaf43dcb4adf3c80f52e /crypto/x509
parent5129e2d69582c0c54a335eb7e0bc794a02418403 (diff)
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>
Diffstat (limited to 'crypto/x509')
-rw-r--r--crypto/x509/x509_vpm.c2
1 files changed, 1 insertions, 1 deletions
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);