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/resolv | |
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/resolv')
-rw-r--r-- | src/resolv/async_resolv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c index ad9d5829..f1e577e8 100644 --- a/src/resolv/async_resolv.c +++ b/src/resolv/async_resolv.c @@ -645,7 +645,8 @@ resolv_copy_hostent_ares(TALLOC_CTX *mem_ctx, struct hostent *src, &((struct ares_addr6ttl *) ares_ttl_data)[i]); break; default: - DEBUG(1, ("Unknown address family %d\n")); + DEBUG(SSSDBG_CRIT_FAILURE, + ("Unknown address family %d\n", family)); goto fail; } @@ -1484,7 +1485,8 @@ resolv_get_sockaddr_address_index(TALLOC_CTX *mem_ctx, ((struct sockaddr_in6 *) sockaddr)->sin6_port = (in_port_t) htons(port); break; default: - DEBUG(1, ("Unknown address family %d\n")); + DEBUG(SSSDBG_CRIT_FAILURE, + ("Unknown address family %d\n", hostent->family)); return NULL; } |