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:40:39 +0000 (18:40 +0100)
(cherry picked from commit 04638f2fc335a6dc2af8e5d556d36e29c261dcd2)

ssl/d1_lib.c

index 3d27e3085818b1a76877085a803b8e5220d6853d..49546ec723a351b7808b05cf0d987664a1c6a49c 100644 (file)
@@ -217,6 +217,7 @@ void dtls1_free(SSL *s)
        pq_64bit_free(&(s->d1->next_bitmap.max_seq_num));
 
        OPENSSL_free(s->d1);
+       s->d1 = NULL;
        }
 
 void dtls1_clear(SSL *s)