diff options
author | zhu qun-ying <qunying@yahoo.com> | 2014-06-02 14:38:52 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-06-02 14:40:45 +0100 |
commit | 4b258e73ae0da0f1a7ff3eb9840b6978711c2400 (patch) | |
tree | f5536b3d059652e1ffff38643d395be778bc9fbc /ssl | |
parent | 6ac2f678828dba586fdd63f67f922b3b643d06c8 (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.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index 49546ec723..c872cb6594 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -191,9 +191,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); } } |