From 97a8a135461badff6ae68b72048b7fc29fc7bbad Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 8 Apr 2013 18:03:12 +0100 Subject: [PATCH 13/17] Set s->d1 to NULL after freeing it. (cherry picked from commit 04638f2fc335a6dc2af8e5d556d36e29c261dcd2) --- ssl/d1_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index f61f718..106939f 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -196,6 +196,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) -- 1.7.9.5