diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-07-11 13:09:05 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-07-11 13:09:05 +0000 |
commit | 81fec8a9b3e15870d7b01e9ae44c1c496882382d (patch) | |
tree | 7ef1358d4d3a53913fd89ed70c9d52ac0a59184f /lib | |
parent | 0767e93bbdc739b9f00ec77aaa5e8fd93f930bcb (diff) |
In dtls1_clear_queues(), free buffered_add_data.q correctly, it's made of
DTLS1_RECORD_DATA, not hm_fragment.
OpenSSL PR #3286 via OpenSSL trunk.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/src/ssl/d1_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libssl/src/ssl/d1_lib.c b/lib/libssl/src/ssl/d1_lib.c index 10f55554e01..0539ad42875 100644 --- a/lib/libssl/src/ssl/d1_lib.c +++ b/lib/libssl/src/ssl/d1_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_lib.c,v 1.22 2014/07/09 11:10:51 bcook Exp $ */ +/* $OpenBSD: d1_lib.c,v 1.23 2014/07/11 13:09:04 miod Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -179,9 +179,9 @@ dtls1_clear_queues(SSL *s) } while ((item = pqueue_pop(s->d1->buffered_app_data.q)) != NULL) { - frag = (hm_fragment *)item->data; - free(frag->fragment); - free(frag); + rdata = (DTLS1_RECORD_DATA *) item->data; + free(rdata->rbuf.buf); + free(item->data); pitem_free(item); } } |