diff options
author | ache <ache@FreeBSD.org> | 2002-01-19 05:59:24 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-01-19 05:59:24 +0000 |
commit | 86e7a84bd8940f1417ed98be8b5fa5d649cb5138 (patch) | |
tree | 49881464d41035045e5abf418f1d375e5b4a1c1a /libexec/ftpd | |
parent | 14d2593b0026398365c75fafdc8240565a856045 (diff) | |
download | FreeBSD-src-86e7a84bd8940f1417ed98be8b5fa5d649cb5138.zip FreeBSD-src-86e7a84bd8940f1417ed98be8b5fa5d649cb5138.tar.gz |
Call opieunlock() only if we skip opieverify() part
Diffstat (limited to 'libexec/ftpd')
-rw-r--r-- | libexec/ftpd/ftpd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 15dcd20..287436a 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -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; |