diff options
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); |