artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef353f3
)
Free the SSL context first and let the reference counting do its thing.
author
jsing
<jsing@openbsd.org>
Mon, 4 Aug 2014 15:48:01 +0000
(15:48 +0000)
committer
jsing
<jsing@openbsd.org>
Mon, 4 Aug 2014 15:48:01 +0000
(15:48 +0000)
lib/libressl/ressl.c
patch
|
blob
|
history
diff --git
a/lib/libressl/ressl.c
b/lib/libressl/ressl.c
index
bc257bd
..
c4a1e42
100644
(file)
--- a/
lib/libressl/ressl.c
+++ b/
lib/libressl/ressl.c
@@
-102,11
+102,8
@@
ressl_free(struct ressl *ctx)
void
ressl_reset(struct ressl *ctx)
{
- /* SSL_free frees the SSL context. */
- if (ctx->ssl_conn != NULL)
- SSL_free(ctx->ssl_conn);
- else
- SSL_CTX_free(ctx->ssl_ctx);
+ SSL_CTX_free(ctx->ssl_ctx);
+ SSL_free(ctx->ssl_conn);
ctx->ssl_conn = NULL;
ctx->ssl_ctx = NULL;