Call opieunlock() only if we skip opieverify() part

This commit is contained in:
Andrey A. Chernov 2002-01-19 05:59:24 +00:00
parent 937d2ef61a
commit c0cbe6a9b8

View File

@ -1251,9 +1251,10 @@ pass(passwd)
}
#ifdef USE_PAM
rval = auth_pam(&pw, passwd);
opieunlock(); /* XXX */
if (rval >= 0)
if (rval >= 0) {
opieunlock();
goto skip;
}
#endif
if (opieverify(&opiedata, passwd) == 0)
xpasswd = pw->pw_passwd;