projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5105ba5
)
Fix an uninitialised read on an error path
author
Matt Caswell
<matt@openssl.org>
Thu, 25 Aug 2016 08:40:17 +0000
(09:40 +0100)
committer
Matt Caswell
<matt@openssl.org>
Thu, 25 Aug 2016 09:11:35 +0000
(10:11 +0100)
Found by Coverity.
Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/ocsp/ocsp_ext.c
patch
|
blob
|
history
diff --git
a/crypto/ocsp/ocsp_ext.c
b/crypto/ocsp/ocsp_ext.c
index 72d21796d2483b559db90fd8a80e111d01229cb4..b829b2e4e3cb436f37e34063c03e621869979ea0 100644
(file)
--- 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)