summaryrefslogtreecommitdiff
path: root/pam_tacplus.c
diff options
context:
space:
mode:
Diffstat (limited to 'pam_tacplus.c')
-rw-r--r--pam_tacplus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pam_tacplus.c b/pam_tacplus.c
index 12b0282..18e69ce 100644
--- a/pam_tacplus.c
+++ b/pam_tacplus.c
@@ -148,7 +148,7 @@ int _pam_account(pam_handle_t *pamh, int argc, const char **argv,
/* checks for specific data required by TACACS+, which should
be supplied in command line */
- if(tac_service == NULL || *tac_service == '\0') {
+ if(*tac_service == '\0') {
_pam_log (LOG_ERR, "ACC: TACACS+ service type not configured");
return PAM_AUTH_ERR;
}
@@ -475,7 +475,7 @@ int pam_sm_acct_mgmt (pam_handle_t * pamh, int flags,
/* checks for specific data required by TACACS+, which should
be supplied in command line */
- if(tac_service == NULL || !*tac_service) {
+ if(!*tac_service) {
_pam_log (LOG_ERR, "SM: TACACS+ service type not configured");
return PAM_AUTH_ERR;
}