mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 12:13:33 +08:00
Use correct error code in log message in pkcs11_token_find_x509_certificate (#34187)
This commit is contained in:
parent
549c1a99d4
commit
bd7b6c213b
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user