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/statem | |
parent | 8124ab56d4e8985151c5a0c4dca6af128fa89f2c (diff) | |
download | openssl-eddb067e2ce82bc2ea104b3ab5286fe334c0525d.tar.gz |
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/statem')
-rw-r--r-- | ssl/statem/statem_dtls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/statem/statem_dtls.c b/ssl/statem/statem_dtls.c index 6068c833c6..e1b6b5790e 100644 --- a/ssl/statem/statem_dtls.c +++ b/ssl/statem/statem_dtls.c @@ -825,7 +825,7 @@ static int dtls_get_reassembled_message(SSL_CONNECTION *s, int *errtype, * We must have at least frag_len bytes left in the record to be read. * Fragments must not span records. */ - if (frag_len > RECORD_LAYER_get_rrec_length(&s->rlayer)) { + if (frag_len > s->rlayer.tlsrecs[s->rlayer.curr_rec].length) { SSLfatal(s, SSL_AD_ILLEGAL_PARAMETER, SSL_R_BAD_LENGTH); goto f_err; } |