1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-02-20 12:54:16 +01:00

make sure rc is initialized before using

This commit is contained in:
Klas Lindfors 2015-03-04 08:50:08 +01:00
parent 663fa9a8a4
commit 6c121c8da3

View File

@ -797,7 +797,8 @@ pam_sm_authenticate (pam_handle_t * pamh,
retval = PAM_AUTHINFO_UNAVAIL;
goto done;
}
if (ykclient_init (&ykc) != YKCLIENT_OK)
rc = ykclient_init (&ykc);
if (rc != YKCLIENT_OK)
{
DBG (("ykclient_init() failed (%d): %s", rc, ykclient_strerror (rc)));
retval = PAM_AUTHINFO_UNAVAIL;