From f9302f9e08d68f6fd974e02668c2bae273981688 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 16 Dec 2009 14:57:32 +1100 Subject: ldap: give a debug error when we don't know a control This interface should really have a proper error interface, but at least a DEBUG() gives the user a chance of finding the error Pair-Programmed-With: Andrew Bartlett --- libcli/ldap/ldap_message.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcli/ldap') diff --git a/libcli/ldap/ldap_message.c b/libcli/ldap/ldap_message.c index 8b0f8a2ea1..1e4421442c 100644 --- a/libcli/ldap/ldap_message.c +++ b/libcli/ldap/ldap_message.c @@ -668,6 +668,8 @@ _PUBLIC_ bool ldap_encode(struct ldap_message *msg, if (!ldap_encode_control(mem_ctx, data, control_handlers, msg->controls[i])) { + DEBUG(1,("Unable to encode control %s\n", + msg->controls[i]->oid)); return false; } } -- cgit