diff options
author | 2014-11-19 05:51:25 +0000 | |
---|---|---|
committer | 2014-11-19 05:51:25 +0000 | |
commit | 3d3c5e2af63e569c6f17387127ea732ca755cdfe (patch) | |
tree | d7e32f1cdb156004b44143b371b3203dbe1112a1 /lib/libssl/s3_clnt.c | |
parent | document when to pass free() a size, and hey -- if it is impossible track (diff) | |
download | wireguard-openbsd-3d3c5e2af63e569c6f17387127ea732ca755cdfe.tar.xz wireguard-openbsd-3d3c5e2af63e569c6f17387127ea732ca755cdfe.zip |
Fix a memory leak with pkey in client key exchange
Based on boringssl commit: 1df112448b41c3568477f3fcd3b8fc820ce80066
ok miod@ jsing@
Diffstat (limited to 'lib/libssl/s3_clnt.c')
-rw-r--r-- | lib/libssl/s3_clnt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/s3_clnt.c b/lib/libssl/s3_clnt.c index 0a834f12bc0..49efb26277e 100644 --- a/lib/libssl/s3_clnt.c +++ b/lib/libssl/s3_clnt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s3_clnt.c,v 1.94 2014/11/18 05:33:43 miod Exp $ */ +/* $OpenBSD: s3_clnt.c,v 1.95 2014/11/19 05:51:25 doug Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1988,6 +1988,7 @@ ssl3_send_client_key_exchange(SSL *s) SSLerr( SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE, ERR_R_INTERNAL_ERROR); + EVP_PKEY_free(pkey); goto err; } rsa = pkey->pkey.rsa; |