diff options
author | Matt Caswell <matt@openssl.org> | 2022-06-02 16:29:04 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-08-18 16:38:13 +0100 |
commit | eddb067e2ce82bc2ea104b3ab5286fe334c0525d (patch) | |
tree | 00b844f5b7f4e26963ac4115899989efe63d49ba /ssl/ssl_lib.c | |
parent | 8124ab56d4e8985151c5a0c4dca6af128fa89f2c (diff) |
Move some DTLS read code into the read record layer
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18132)
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |