commit | 6aef38f5ac65ad599454159c82530b62d740b9b9 | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Tue Nov 18 10:45:20 2003 +1100 |
committer | Damien Miller <djm@mindrot.org> | Tue Nov 18 10:45:20 2003 +1100 |
tree | b012f2eb54f03497d2ed8c11964b08c9339ce572 | |
parent | 0425d40194f36c57423c014b0730a9d344dbe019 [diff] [blame] |
- (djm) Fix early exit for root auth success when UsePAM=yes and PermitRootLogin=no
diff --git a/monitor.c b/monitor.c index 97f1ee9..c4f9a48 100644 --- a/monitor.c +++ b/monitor.c
@@ -309,7 +309,7 @@ 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);