mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 01:55:32 +03:00
pkcs11-util: don't mask return value of the first asprintf()
Fixes CID#1409666
This commit is contained in:
parent
d6246fd498
commit
0e97a910a6
@ -218,7 +218,7 @@ int pkcs11_token_login(
|
||||
r = asprintf(&text,
|
||||
"Please enter correct PIN for security token '%s' in order to unlock %s (final try):",
|
||||
token_label, friendly_name);
|
||||
if (FLAGS_SET(token_info->flags, CKF_USER_PIN_COUNT_LOW))
|
||||
else if (FLAGS_SET(token_info->flags, CKF_USER_PIN_COUNT_LOW))
|
||||
r = asprintf(&text,
|
||||
"PIN has been entered incorrectly previously, please enter correct PIN for security token '%s' in order to unlock %s:",
|
||||
token_label, friendly_name);
|
||||
|
Loading…
Reference in New Issue
Block a user