summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_async_connection.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-11-07 13:51:44 +0100
committerStephen Gallagher <sgallagh@redhat.com>2011-11-18 12:18:33 -0500
commit37a76cff2478d8be3d11ccb7ff42d9d863f1839e (patch)
tree746c7612fa5658807fcfa7e4e4147a65f2bf644f /src/providers/ldap/sdap_async_connection.c
parentd8e4e7a40eb75810c58a81bda7e27a2aaecc868f (diff)
downloadsssd-37a76cff2478d8be3d11ccb7ff42d9d863f1839e.tar.gz
sssd-37a76cff2478d8be3d11ccb7ff42d9d863f1839e.tar.xz
sssd-37a76cff2478d8be3d11ccb7ff42d9d863f1839e.zip
Prevent printing NULL in several places of LDAP provider
Diffstat (limited to 'src/providers/ldap/sdap_async_connection.c')
-rw-r--r--src/providers/ldap/sdap_async_connection.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c
index 076e7ee37..cb7325365 100644
--- a/src/providers/ldap/sdap_async_connection.c
+++ b/src/providers/ldap/sdap_async_connection.c
@@ -588,7 +588,8 @@ static void simple_bind_done(struct sdap_op *op,
}
DEBUG(3, ("Bind result: %s(%d), %s\n",
- sss_ldap_err2string(state->result), state->result, errmsg));
+ sss_ldap_err2string(state->result), state->result,
+ errmsg ? errmsg : "no errmsg set"));
ret = LDAP_SUCCESS;
done:
@@ -792,8 +793,9 @@ struct tevent_req *sdap_kinit_send(TALLOC_CTX *memctx,
struct sdap_kinit_state *state;
int ret;
- DEBUG(6, ("Attempting kinit (%s, %s, %s, %d)\n", keytab, principal, realm,
- lifetime));
+ DEBUG(6, ("Attempting kinit (%s, %s, %s, %d)\n",
+ keytab ? keytab : "default",
+ principal, realm, lifetime));
if (lifetime < 0 || lifetime > INT32_MAX) {
DEBUG(1, ("Ticket lifetime out of range.\n"));