]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Use correct error code in log message in pkcs11_token_find_x509_certificate (#34187)
authorPavlNekrasov <95914807+PavlNekrasov@users.noreply.github.com>
Fri, 30 Aug 2024 14:18:56 +0000 (17:18 +0300)
committerGitHub <noreply@github.com>
Fri, 30 Aug 2024 14:18:56 +0000 (15:18 +0100)
src/shared/pkcs11-util.c

index 2775fa9268b6a228bea9f8ddb4bebe1123f4c466..c7fa3eccb27831d0b79f513a87705df3bac351a6 100644 (file)
@@ -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.");