diff options
author | Matt Caswell <matt@openssl.org> | 2016-08-25 09:40:17 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-08-25 10:11:35 +0100 |
commit | cc069067075d77c7a61e44a253aec917d0b6a2f5 (patch) | |
tree | 908b1698729f30465794f12c15616680233b6b8b /crypto/ocsp | |
parent | 5105ba5bec773883e86d8c026d1eac1f1c970669 (diff) |
Fix an uninitialised read on an error path
Found by Coverity.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/ocsp')
-rw-r--r-- | crypto/ocsp/ocsp_ext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ocsp/ocsp_ext.c b/crypto/ocsp/ocsp_ext.c index 72d21796d2..b829b2e4e3 100644 --- a/crypto/ocsp/ocsp_ext.c +++ b/crypto/ocsp/ocsp_ext.c @@ -257,7 +257,7 @@ static int ocsp_add1_nonce(STACK_OF(X509_EXTENSION) **exts, */ os.length = ASN1_object_size(0, len, V_ASN1_OCTET_STRING); if (os.length < 0) - goto err; + return 0; os.data = OPENSSL_malloc(os.length); if (os.data == NULL) |