summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authordjm <djm>2003-11-17 23:45:20 +0000
committerdjm <djm>2003-11-17 23:45:20 +0000
commit194cef4abe80a151d2190a4cad2e9c0dd2c554b2 (patch)
treef86f6fe2a56aaa7cb43c36c7f717688c85d92c1b /monitor.c
parent562ec314967d62373c005d2f4e9559417c1ce0d5 (diff)
downloadopenssh-194cef4abe80a151d2190a4cad2e9c0dd2c554b2.tar.gz
- (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 97f1ee9f..c4f9a48f 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);