summaryrefslogtreecommitdiffstats
path: root/ssl/d1_lib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2014-11-25 13:36:00 +0000
committerMatt Caswell <matt@openssl.org>2014-11-26 10:11:25 +0000
commit60de554e4fbb80030358310d0f098b5214a5367a (patch)
tree5ff9ab248bcb136b6e2dc697e9f5da878607c909 /ssl/d1_lib.c
parentc57400e86c654fc0e1ef0f30590147493727147e (diff)
Fixed memory leak due to incorrect freeing of DTLS reassembly bit mask
PR#3608 Reviewed-by: Tim Hudson <tjh@openssl.org> (cherry picked from commit 8a35dbb6d89a16d792b79b157b3e89443639ec94)
Diffstat (limited to 'ssl/d1_lib.c')
-rw-r--r--ssl/d1_lib.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c
index 25c58a8af9..a593c7859e 100644
--- a/ssl/d1_lib.c
+++ b/ssl/d1_lib.c
@@ -187,16 +187,14 @@ static void dtls1_clear_queues(SSL *s)
while( (item = pqueue_pop(s->d1->buffered_messages)) != NULL)
{
frag = (hm_fragment *)item->data;
- OPENSSL_free(frag->fragment);
- OPENSSL_free(frag);
+ dtls1_hm_fragment_free(frag);
pitem_free(item);
}
while ( (item = pqueue_pop(s->d1->sent_messages)) != NULL)
{
frag = (hm_fragment *)item->data;
- OPENSSL_free(frag->fragment);
- OPENSSL_free(frag);
+ dtls1_hm_fragment_free(frag);
pitem_free(item);
}