From bd7b6c213bf492ee6d0c8fd2dc4241240d9b0b27 Mon Sep 17 00:00:00 2001 From: PavlNekrasov <95914807+PavlNekrasov@users.noreply.github.com> Date: Fri, 30 Aug 2024 17:18:56 +0300 Subject: [PATCH] Use correct error code in log message in pkcs11_token_find_x509_certificate (#34187) --- src/shared/pkcs11-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/pkcs11-util.c b/src/shared/pkcs11-util.c index 2775fa9268b..c7fa3eccb27 100644 --- a/src/shared/pkcs11-util.c +++ b/src/shared/pkcs11-util.c @@ -526,7 +526,7 @@ int pkcs11_token_find_x509_certificate( "Failed to find objects: %s", sym_p11_kit_strerror(rv)); if (rv2 != CKR_OK) return log_error_errno(SYNTHETIC_ERRNO(EIO), - "Failed to finalize object find call: %s", sym_p11_kit_strerror(rv)); + "Failed to finalize object find call: %s", sym_p11_kit_strerror(rv2)); if (n_objects == 0) return log_error_errno(SYNTHETIC_ERRNO(ENOENT), "Failed to find selected X509 certificate on token."); -- 2.47.3