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:
6712ba9
)
Free a variable on an error path
author
Matt Caswell
<matt@openssl.org>
Tue, 29 May 2018 14:59:25 +0000
(15:59 +0100)
committer
Matt Caswell
<matt@openssl.org>
Thu, 31 May 2018 09:39:13 +0000
(10:39 +0100)
Issue found by Coverity.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6373)
apps/s_server.c
patch
|
blob
|
history
diff --git
a/apps/s_server.c
b/apps/s_server.c
index b0d38e4849ff9149594b7b48316b254f660b1ca3..df2bf02a6e85701ea7848f6f427b9ee1a3396ea6 100644
(file)
--- a/
apps/s_server.c
+++ b/
apps/s_server.c
@@
-212,6
+212,7
@@
static int psk_find_session_cb(SSL *ssl, const unsigned char *identity,
cipher = SSL_CIPHER_find(ssl, tls13_aes128gcmsha256_id);
if (cipher == NULL) {
BIO_printf(bio_err, "Error finding suitable ciphersuite\n");
+ OPENSSL_free(key);
return 0;
}