]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Call post_process_record for dtls records
authorFrederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Mon, 2 Oct 2023 07:58:30 +0000 (09:58 +0200)
committerPauli <pauli@openssl.org>
Tue, 3 Oct 2023 23:54:01 +0000 (10:54 +1100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22239)

ssl/record/methods/dtls_meth.c

index 7205283173a8b33ea27fa2846c13624a5dd66ad2..e71730eba65d9d0af8fd140c03fb0e0aef76a4f3 100644 (file)
@@ -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;
 }