From 325cfa8531153641ca0ade876fd29ef482e973a8 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Sun, 5 Jun 2016 20:48:08 +0200 Subject: [PATCH 1/1] Don't compare a just free()d pointer Found by tis-interpreter Reviewed-by: Rich Salz GH: #1173 --- ssl/ssl_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index d4b8335906..359260e1f5 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -948,9 +948,9 @@ void SSL_free(SSL *s) BIO_free(s->bbio); s->bbio = NULL; } - BIO_free_all(s->rbio); if (s->wbio != s->rbio) BIO_free_all(s->wbio); + BIO_free_all(s->rbio); BUF_MEM_free(s->init_buf); -- 2.34.1