Commit 7e502646b8 for bind

commit 7e502646b80215b0faf892a63ea63c9d7fe1ea28
Author: OndÅ™ej Surý <ondrej@isc.org>
Date:   Wed Nov 25 12:11:39 2026 +0100

    Clear the error queue when HMAC_Final() fails

    All the other failure paths in the HMAC code clear the libcrypto error
    queue, so a stale error cannot be picked up and misreported by a later
    call; the HMAC_Final() one did not.

    Assisted-by: Claude:claude-mythos-5-2

diff --git a/lib/isc/crypto/ossl1_1.c b/lib/isc/crypto/ossl1_1.c
index 4566778f90..ac59305d6c 100644
--- a/lib/isc/crypto/ossl1_1.c
+++ b/lib/isc/crypto/ossl1_1.c
@@ -280,6 +280,7 @@ isc_hmac_final(isc_hmac_t *hmac, isc_buffer_t *out) {
 	}

 	if (HMAC_Final(hmac, isc_buffer_used(out), &len) != 1) {
+		ERR_clear_error();
 		return ISC_R_CRYPTOFAILURE;
 	}