diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-05-17 17:36:38 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-20 22:37:25 +0200 |
commit | 7486dea9f5f7b2a6fbbacc6db740a82140b6377c (patch) | |
tree | a7f7cfc4f772860423e56d363ade1f6408f45f71 /src/responder/pam | |
parent | 574061e65d3fb687b9cb2c757afa1fe92812245e (diff) | |
download | sssd-7486dea9f5f7b2a6fbbacc6db740a82140b6377c.tar.gz sssd-7486dea9f5f7b2a6fbbacc6db740a82140b6377c.tar.xz sssd-7486dea9f5f7b2a6fbbacc6db740a82140b6377c.zip |
Fixing critical format string issues.
--missing arguments.
--format '%s', but argument is integer.
--wrong format string, examle: '%\n'
Diffstat (limited to 'src/responder/pam')
-rw-r--r-- | src/responder/pam/pam_LOCAL_domain.c | 2 | ||||
-rw-r--r-- | src/responder/pam/pamsrv_cmd.c | 4 | ||||
-rw-r--r-- | src/responder/pam/pamsrv_dp.c | 6 |
3 files changed, 8 insertions, 4 deletions
diff --git a/src/responder/pam/pam_LOCAL_domain.c b/src/responder/pam/pam_LOCAL_domain.c index 4aec3e4df..e7776cba3 100644 --- a/src/responder/pam/pam_LOCAL_domain.c +++ b/src/responder/pam/pam_LOCAL_domain.c @@ -332,7 +332,7 @@ int LOCAL_pam_handler(struct pam_auth_req *preq) break; default: lreq->error = EINVAL; - DEBUG(1, ("Unknown PAM task [%d].\n")); + DEBUG(SSSDBG_CRIT_FAILURE, ("Unknown PAM task [%d].\n", pd->cmd)); } done: diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index 8350f6554..ff86a13a5 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -416,7 +416,9 @@ static errno_t filter_responses(struct confdb_ctx *cdb, break; default: - DEBUG(7, ("User info type [%d] not filtered.\n")); + DEBUG(SSSDBG_TRACE_LIBS, + ("User info type [%d] not filtered.\n", + user_info_type)); } } else if (resp->type & SSS_SERVER_INFO) { resp->do_not_send_to_client = true; diff --git a/src/responder/pam/pamsrv_dp.c b/src/responder/pam/pamsrv_dp.c index 46c54dadd..d5a52446f 100644 --- a/src/responder/pam/pamsrv_dp.c +++ b/src/responder/pam/pamsrv_dp.c @@ -117,8 +117,10 @@ int pam_dp_send_req(struct pam_auth_req *preq, int timeout) res = sss_dp_get_domain_conn(preq->cctx->rctx, preq->domain->conn_name, &be_conn); if (res != EOK) { - DEBUG(1, ("The Data Provider connection for %s is not available!" - " This maybe a bug, it shouldn't happen!\n", preq->domain)); + DEBUG(SSSDBG_CRIT_FAILURE, + ("The Data Provider connection for %s is not available!" + " This maybe a bug, it shouldn't happen!\n", + preq->domain->conn_name)); return EIO; } |