Set s->d1 to NULL after freeing it.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 8 Apr 2013 17:03:12 +0000 (18:03 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 8 Apr 2013 17:39:52 +0000 (18:39 +0100)
(cherry picked from commit 04638f2fc335a6dc2af8e5d556d36e29c261dcd2)

ssl/d1_lib.c

index f61f718..106939f 100644 (file)
@@ -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)