Author: tridge
Date: 2005-06-21 13:42:47 +0000 (Tue, 21 Jun 2005)
New Revision: 7810

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7810

Log:
don't give errors when the ldap server sends us reference replies


Modified:
   branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c 2005-06-21 13:27:35 UTC 
(rev 7809)
+++ branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c 2005-06-21 13:42:47 UTC 
(rev 7810)
@@ -130,7 +130,8 @@
        req->replies[req->num_replies] = talloc_steal(req->replies, msg);
        req->num_replies++;
 
-       if (msg->type != LDAP_TAG_SearchResultEntry) {
+       if (msg->type != LDAP_TAG_SearchResultEntry &&
+           msg->type != LDAP_TAG_SearchResultReference) {
                /* currently only search results expect multiple
                   replies */
                req->state = LDAP_REQUEST_DONE;

Reply via email to