summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorzhu qun-ying <qunying@yahoo.com>2014-06-02 14:38:52 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-06-02 14:40:05 +0100
commitd52eb82781eff1f8245ae9c16c84db765f037cbe (patch)
tree48eb4a43d6bcda785ec4b2ebae8950c20c902373 /ssl
parent4967a832ab7e57613dc8baebd316a2542dabbddf (diff)
Free up s->d1->buffered_app_data.q properly.
PR#3286 (cherry picked from commit 71e95000afb2227fe5cac1c79ae884338bcd8d0b)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/d1_lib.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c
index 2287ba6fa4..7d9d91ff2c 100644
--- a/ssl/d1_lib.c
+++ b/ssl/d1_lib.c
@@ -202,9 +202,12 @@ static void dtls1_clear_queues(SSL *s)
while ( (item = pqueue_pop(s->d1->buffered_app_data.q)) != NULL)
{
- frag = (hm_fragment *)item->data;
- OPENSSL_free(frag->fragment);
- OPENSSL_free(frag);
+ rdata = (DTLS1_RECORD_DATA *) item->data;
+ if (rdata->rbuf.buf)
+ {
+ OPENSSL_free(rdata->rbuf.buf);
+ }
+ OPENSSL_free(item->data);
pitem_free(item);
}
}