diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-12-16 14:57:32 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-12-16 20:56:23 +1100 |
commit | f9302f9e08d68f6fd974e02668c2bae273981688 (patch) | |
tree | de8bab96666d599f15e885ee50616d78edcf20ce /libcli/ldap | |
parent | 6c2125572cfbcd1878dfe99893ddae37f95d1f6e (diff) | |
download | samba-f9302f9e08d68f6fd974e02668c2bae273981688.tar.gz samba-f9302f9e08d68f6fd974e02668c2bae273981688.tar.bz2 samba-f9302f9e08d68f6fd974e02668c2bae273981688.zip |
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 <abartlet@samba.org>
Diffstat (limited to 'libcli/ldap')
-rw-r--r-- | libcli/ldap/ldap_message.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } } |