diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2014-06-06 20:59:29 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2014-06-06 20:59:29 +0000 |
commit | 2e22f5e2e00c1f1f599b03634ca27bb5b9ac471e (patch) | |
tree | a707d3fdb02faa3d4423773ae7b606febaa5e786 /ssl/d1_lib.c | |
parent | 06369e3974fbc83d3778807c090fbe69f20a27d4 (diff) | |
download | src-test2-2e22f5e2e00c1f1f599b03634ca27bb5b9ac471e.tar.gz src-test2-2e22f5e2e00c1f1f599b03634ca27bb5b9ac471e.zip |
Notes
Diffstat (limited to 'ssl/d1_lib.c')
-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 106939f24177..6bde16fa212c 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -176,9 +176,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); } } |