projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b584ef
)
Fix ssl_cert_dup: change one 'return NULL' to 'goto err'
author
Richard Levitte
<levitte@openssl.org>
Wed, 14 Dec 2016 13:10:33 +0000
(14:10 +0100)
committer
Richard Levitte
<levitte@openssl.org>
Wed, 14 Dec 2016 13:19:01 +0000
(14:19 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2082)
ssl/ssl_cert.c
patch
|
blob
|
history
diff --git
a/ssl/ssl_cert.c
b/ssl/ssl_cert.c
index a3121db8d4e96b219fb90c4335fd0d1056b6cb58..1be6fb0032e200805a89927234a7c631495f7825 100644
(file)
--- a/
ssl/ssl_cert.c
+++ b/
ssl/ssl_cert.c
@@
-315,7
+315,7
@@
CERT *ssl_cert_dup(CERT *cert)
OPENSSL_malloc(cert->pkeys[i].serverinfo_length);
if (ret->pkeys[i].serverinfo == NULL) {
SSLerr(SSL_F_SSL_CERT_DUP, ERR_R_MALLOC_FAILURE);
-
return NULL
;
+
goto err
;
}
ret->pkeys[i].serverinfo_length =
cert->pkeys[i].serverinfo_length;