s4:ldap_server Correct removal of talloc_steal()
authorAndrew Bartlett <abartlet@samba.org>
Fri, 14 Aug 2009 03:10:42 +0000 (13:10 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 14 Aug 2009 03:12:35 +0000 (13:12 +1000)
This corrects commit 7a82aed71b74af8bc2a8a4381541adbb22452d20.  The
steal did not set ent->attributes, so it was incorrect to assign to
ent->attributes.

Andrew Bartlett

source4/ldap_server/ldap_backend.c

index 72366d2db3700ae52da242ee07f2a9e720241a7e..a318e265b78d9f0f2c7e60aff9e03e61a6618b37 100644 (file)
@@ -427,7 +427,6 @@ static NTSTATUS ldapsrv_SearchRequest(struct ldapsrv_call *call)
                                }
                                ent->attributes[j].num_values = res->msgs[i]->elements[j].num_values;
                                ent->attributes[j].values = res->msgs[i]->elements[j].values;
-                               ent->attributes = res->msgs[i]->elements[j].values;
                        }
 queue_reply:
                        ldapsrv_queue_reply(call, ent_r);