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:
parent
663fa9a8a4
commit
6c121c8da3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user