From eddb067e2ce82bc2ea104b3ab5286fe334c0525d Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 2 Jun 2022 16:29:04 +0100 Subject: Move some DTLS read code into the read record layer Reviewed-by: Hugo Landau Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/18132) --- ssl/ssl_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ssl/ssl_lib.c') diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index f20b10606f..9e4d689c23 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1791,13 +1791,13 @@ int SSL_has_pending(const SSL *s) /* Check buffered app data if any first */ if (SSL_CONNECTION_IS_DTLS(sc)) { - DTLS1_RECORD_DATA *rdata; + TLS_RECORD *rdata; pitem *item, *iter; iter = pqueue_iterator(sc->rlayer.d->buffered_app_data.q); while ((item = pqueue_next(&iter)) != NULL) { rdata = item->data; - if (rdata->rrec.length > 0) + if (rdata->length > 0) return 1; } } -- cgit v1.2.3