summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2002-01-19 05:59:24 +0000
committerache <ache@FreeBSD.org>2002-01-19 05:59:24 +0000
commit86e7a84bd8940f1417ed98be8b5fa5d649cb5138 (patch)
tree49881464d41035045e5abf418f1d375e5b4a1c1a /libexec
parent14d2593b0026398365c75fafdc8240565a856045 (diff)
downloadFreeBSD-src-86e7a84bd8940f1417ed98be8b5fa5d649cb5138.zip
FreeBSD-src-86e7a84bd8940f1417ed98be8b5fa5d649cb5138.tar.gz
Call opieunlock() only if we skip opieverify() part
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c5
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;
OpenPOWER on IntegriCloud