From 6aef38f5ac65ad599454159c82530b62d740b9b9 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 18 Nov 2003 10:45:20 +1100 Subject: - (djm) Fix early exit for root auth success when UsePAM=yes and PermitRootLogin=no --- monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 97f1ee9f4..c4f9a48fb 100644 --- a/monitor.c +++ b/monitor.c @@ -309,7 +309,7 @@ monitor_child_preauth(Authctxt *_authctxt, struct monitor *pmonitor) authenticated = 0; #ifdef USE_PAM /* PAM needs to perform account checks after auth */ - if (options.use_pam) { + if (options.use_pam && authenticated) { Buffer m; buffer_init(&m); -- cgit v1.2.3