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/providers/krb5 | |
parent | 574061e65d3fb687b9cb2c757afa1fe92812245e (diff) | |
download | sssd-7486dea9f5f7b2a6fbbacc6db740a82140b6377c.tar.gz sssd-7486dea9f5f7b2a6fbbacc6db740a82140b6377c.tar.bz2 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/providers/krb5')
-rw-r--r-- | src/providers/krb5/krb5_child.c | 4 | ||||
-rw-r--r-- | src/providers/krb5/krb5_utils.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index 831905af..4626f59f 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -2029,7 +2029,9 @@ static int k5c_setup(struct krb5_req *kr, uint32_t offline) } else if (strcasecmp(use_fast_str, "demand") == 0) { kerr = k5c_setup_fast(kr, lifetime_str, true); } else { - DEBUG(1, ("Unsupported value [%s] for krb5_use_fast.\n")); + DEBUG(SSSDBG_CRIT_FAILURE, + ("Unsupported value [%s] for krb5_use_fast.\n", + use_fast_str)); return EINVAL; } } diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c index 52456893..1883d785 100644 --- a/src/providers/krb5/krb5_utils.c +++ b/src/providers/krb5/krb5_utils.c @@ -858,7 +858,7 @@ cc_file_check_existing(const char *location, uid_t uid, filename = sss_krb5_residual_check_type(location, SSS_KRB5_TYPE_FILE); if (!filename) { - DEBUG(SSSDBG_CRIT_FAILURE, ("%s is not of type FILE:\n")); + DEBUG(SSSDBG_CRIT_FAILURE, ("%s is not of type FILE:\n", location)); return EINVAL; } @@ -922,7 +922,7 @@ cc_file_remove(const char *location) filename = sss_krb5_residual_check_type(location, SSS_KRB5_TYPE_FILE); if (!filename) { - DEBUG(SSSDBG_CRIT_FAILURE, ("%s is not of type FILE:\n")); + DEBUG(SSSDBG_CRIT_FAILURE, ("%s is not of type FILE:\n", location)); return EINVAL; } |