From: Kurt Roeckx Date: Sun, 5 Jun 2016 18:48:08 +0000 (+0200) Subject: Don't compare a just free()d pointer X-Git-Tag: OpenSSL_1_1_0-pre6~489 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=325cfa8531153641ca0ade876fd29ef482e973a8;ds=sidebyside Don't compare a just free()d pointer Found by tis-interpreter Reviewed-by: Rich Salz GH: #1173 --- 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);