From: Frederik Wedel-Heinen Date: Mon, 2 Oct 2023 07:58:30 +0000 (+0200) Subject: Call post_process_record for dtls records X-Git-Tag: openssl-3.2.0-beta1~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d3f266446eb5b12a4162804536b7356024977e3;p=thirdparty%2Fopenssl.git Call post_process_record for dtls records Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/22239) --- diff --git a/ssl/record/methods/dtls_meth.c b/ssl/record/methods/dtls_meth.c index 7205283173a..e71730eba65 100644 --- a/ssl/record/methods/dtls_meth.c +++ b/ssl/record/methods/dtls_meth.c @@ -568,6 +568,11 @@ int dtls_get_more_records(OSSL_RECORD_LAYER *rl) goto again; /* get another record */ } + if (rl->funcs->post_process_record && !rl->funcs->post_process_record(rl, rr)) { + /* RLAYERfatal already called */ + return OSSL_RECORD_RETURN_FATAL; + } + rl->num_recs = 1; return OSSL_RECORD_RETURN_SUCCESS; }