pkcs11-util: don't mask return value of the first asprintf()

Fixes CID#1409666
This commit is contained in:
Frantisek Sumsal 2020-01-06 10:44:19 +01:00 committed by Yu Watanabe
parent d6246fd498
commit 0e97a910a6

View file

@ -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);