diff options
Diffstat (limited to 'sesman/verify_user.c')
| -rw-r--r-- | sesman/verify_user.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sesman/verify_user.c b/sesman/verify_user.c index 18980aaf..cdc60b47 100644 --- a/sesman/verify_user.c +++ b/sesman/verify_user.c @@ -38,7 +38,7 @@ #define SECS_PER_DAY (24L*3600L) #endif -extern struct config_sesman g_cfg; +extern struct config_sesman* g_cfg; /* in sesman.c */ static int DEFAULT_CC auth_crypt_pwd(char* pwd, char* pln, char* crp); @@ -73,7 +73,7 @@ auth_userpass(char* user, char* pass) } if (1==auth_account_disabled(stp)) { - log_message(&(g_cfg.log), LOG_LEVEL_INFO, "account %s is disabled", user); + log_message(&(g_cfg->log), LOG_LEVEL_INFO, "account %s is disabled", user); return 0; } g_strncpy(hash, stp->sp_pwdp, 34); @@ -310,13 +310,13 @@ auth_account_disabled(struct spwd* stp) today=g_time1()/SECS_PER_DAY; - LOG_DBG(&(g_cfg.log), "last %d",stp->sp_lstchg); - LOG_DBG(&(g_cfg.log), "min %d",stp->sp_min); - LOG_DBG(&(g_cfg.log), "max %d",stp->sp_max); - LOG_DBG(&(g_cfg.log), "inact %d",stp->sp_inact); - LOG_DBG(&(g_cfg.log), "warn %d",stp->sp_warn); - LOG_DBG(&(g_cfg.log), "expire %d",stp->sp_expire); - LOG_DBG(&(g_cfg.log), "today %d",today); + LOG_DBG(&(g_cfg->log), "last %d",stp->sp_lstchg); + LOG_DBG(&(g_cfg->log), "min %d",stp->sp_min); + LOG_DBG(&(g_cfg->log), "max %d",stp->sp_max); + LOG_DBG(&(g_cfg->log), "inact %d",stp->sp_inact); + LOG_DBG(&(g_cfg->log), "warn %d",stp->sp_warn); + LOG_DBG(&(g_cfg->log), "expire %d",stp->sp_expire); + LOG_DBG(&(g_cfg->log), "today %d",today); if ((stp->sp_expire != -1) && (today >= stp->sp_expire)) { |
