summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/d1_lib.c')
-rw-r--r--src/lib/libssl/d1_lib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libssl/d1_lib.c b/src/lib/libssl/d1_lib.c
index 6171035d23..b7ba6b1092 100644
--- a/src/lib/libssl/d1_lib.c
+++ b/src/lib/libssl/d1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_lib.c,v 1.44 2020/03/10 17:02:21 jsing Exp $ */ 1/* $OpenBSD: d1_lib.c,v 1.45 2020/03/12 17:01:53 jsing Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -136,17 +136,17 @@ dtls1_clear_queues(SSL *s)
136{ 136{
137 pitem *item = NULL; 137 pitem *item = NULL;
138 hm_fragment *frag = NULL; 138 hm_fragment *frag = NULL;
139 DTLS1_RECORD_DATA *rdata; 139 DTLS1_RECORD_DATA_INTERNAL *rdata;
140 140
141 while ((item = pqueue_pop(D1I(s)->unprocessed_rcds.q)) != NULL) { 141 while ((item = pqueue_pop(D1I(s)->unprocessed_rcds.q)) != NULL) {
142 rdata = (DTLS1_RECORD_DATA *) item->data; 142 rdata = (DTLS1_RECORD_DATA_INTERNAL *) item->data;
143 free(rdata->rbuf.buf); 143 free(rdata->rbuf.buf);
144 free(item->data); 144 free(item->data);
145 pitem_free(item); 145 pitem_free(item);
146 } 146 }
147 147
148 while ((item = pqueue_pop(D1I(s)->processed_rcds.q)) != NULL) { 148 while ((item = pqueue_pop(D1I(s)->processed_rcds.q)) != NULL) {
149 rdata = (DTLS1_RECORD_DATA *) item->data; 149 rdata = (DTLS1_RECORD_DATA_INTERNAL *) item->data;
150 free(rdata->rbuf.buf); 150 free(rdata->rbuf.buf);
151 free(item->data); 151 free(item->data);
152 pitem_free(item); 152 pitem_free(item);
@@ -167,7 +167,7 @@ dtls1_clear_queues(SSL *s)
167 } 167 }
168 168
169 while ((item = pqueue_pop(D1I(s)->buffered_app_data.q)) != NULL) { 169 while ((item = pqueue_pop(D1I(s)->buffered_app_data.q)) != NULL) {
170 rdata = (DTLS1_RECORD_DATA *) item->data; 170 rdata = (DTLS1_RECORD_DATA_INTERNAL *) item->data;
171 free(rdata->rbuf.buf); 171 free(rdata->rbuf.buf);
172 free(item->data); 172 free(item->data);
173 pitem_free(item); 173 pitem_free(item);