summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
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);