summaryrefslogtreecommitdiffstats
path: root/lib/libssl/d1_lib.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-07-11 13:09:04 +0000
committermiod <miod@openbsd.org>2014-07-11 13:09:04 +0000
commit3e6428bc8cb16f320e55270f36f4ec9385380285 (patch)
tree80bc7f69aedeb6bd0d48dea28393e8b1025adc58 /lib/libssl/d1_lib.c
parentGrok the new /dev/klog LIOCSFD ioctl associated with sendsyslog(2) (diff)
downloadwireguard-openbsd-3e6428bc8cb16f320e55270f36f4ec9385380285.tar.xz
wireguard-openbsd-3e6428bc8cb16f320e55270f36f4ec9385380285.zip
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/libssl/d1_lib.c')
-rw-r--r--lib/libssl/d1_lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libssl/d1_lib.c b/lib/libssl/d1_lib.c
index 10f55554e01..0539ad42875 100644
--- a/lib/libssl/d1_lib.c
+++ b/lib/libssl/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);
}
}