diff options
Diffstat (limited to 'src/lib/libssl/d1_lib.c')
| -rw-r--r-- | src/lib/libssl/d1_lib.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/libssl/d1_lib.c b/src/lib/libssl/d1_lib.c index f0b9c1920a..87bc9b68c6 100644 --- a/src/lib/libssl/d1_lib.c +++ b/src/lib/libssl/d1_lib.c | |||
| @@ -149,18 +149,14 @@ dtls1_clear_queues(SSL *s) | |||
| 149 | 149 | ||
| 150 | while ((item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL) { | 150 | while ((item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL) { |
| 151 | rdata = (DTLS1_RECORD_DATA *) item->data; | 151 | rdata = (DTLS1_RECORD_DATA *) item->data; |
| 152 | if (rdata->rbuf.buf) { | 152 | free(rdata->rbuf.buf); |
| 153 | free(rdata->rbuf.buf); | ||
| 154 | } | ||
| 155 | free(item->data); | 153 | free(item->data); |
| 156 | pitem_free(item); | 154 | pitem_free(item); |
| 157 | } | 155 | } |
| 158 | 156 | ||
| 159 | while ((item = pqueue_pop(s->d1->processed_rcds.q)) != NULL) { | 157 | while ((item = pqueue_pop(s->d1->processed_rcds.q)) != NULL) { |
| 160 | rdata = (DTLS1_RECORD_DATA *) item->data; | 158 | rdata = (DTLS1_RECORD_DATA *) item->data; |
| 161 | if (rdata->rbuf.buf) { | 159 | free(rdata->rbuf.buf); |
| 162 | free(rdata->rbuf.buf); | ||
| 163 | } | ||
| 164 | free(item->data); | 160 | free(item->data); |
| 165 | pitem_free(item); | 161 | pitem_free(item); |
| 166 | } | 162 | } |
