From 1d3f266446eb5b12a4162804536b7356024977e3 Mon Sep 17 00:00:00 2001 From: Frederik Wedel-Heinen Date: Mon, 2 Oct 2023 09:58:30 +0200 Subject: [PATCH] Call post_process_record for dtls records Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/22239) --- ssl/record/methods/dtls_meth.c | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.47.2