summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-11-18 10:45:20 +1100
committerDamien Miller <djm@mindrot.org>2003-11-18 10:45:20 +1100
commit6aef38f5ac65ad599454159c82530b62d740b9b9 (patch)
treeb012f2eb54f03497d2ed8c11964b08c9339ce572 /monitor.c
parent0425d40194f36c57423c014b0730a9d344dbe019 (diff)
- (djm) Fix early exit for root auth success when UsePAM=yes and
PermitRootLogin=no
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
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)
309 authenticated = 0; 309 authenticated = 0;
310#ifdef USE_PAM 310#ifdef USE_PAM
311 /* PAM needs to perform account checks after auth */ 311 /* PAM needs to perform account checks after auth */
312 if (options.use_pam) { 312 if (options.use_pam && authenticated) {
313 Buffer m; 313 Buffer m;
314 314
315 buffer_init(&m); 315 buffer_init(&m);