Set s->d1 to NULL after freeing it.
[openssl.git] / ssl / d1_lib.c
index ddbb78a..b70bce6 100644 (file)
@@ -222,6 +222,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)