diff options
author | Damien Miller <djm@mindrot.org> | 2003-11-18 10:45:20 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-11-18 10:45:20 +1100 |
commit | 6aef38f5ac65ad599454159c82530b62d740b9b9 (patch) | |
tree | b012f2eb54f03497d2ed8c11964b08c9339ce572 /monitor.c | |
parent | 0425d40194f36c57423c014b0730a9d344dbe019 (diff) |
- (djm) Fix early exit for root auth success when UsePAM=yes and
PermitRootLogin=no
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |