From: Dr. Stephen Henson Date: Mon, 8 Apr 2013 17:03:12 +0000 (+0100) Subject: Set s->d1 to NULL after freeing it. X-Git-Tag: OpenSSL_1_0_0l~27 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d114267167e76c5e323ee9cb405e54a668bddc5;p=oweals%2Fopenssl.git Set s->d1 to NULL after freeing it. (cherry picked from commit 04638f2fc335a6dc2af8e5d556d36e29c261dcd2) --- diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index 8479932136..97f325f32c 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -195,6 +195,7 @@ void dtls1_free(SSL *s) pqueue_free(s->d1->buffered_app_data.q); OPENSSL_free(s->d1); + s->d1 = NULL; } void dtls1_clear(SSL *s)