git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c3cf58
)
s4:ldap_server Remove another talloc_steal (with references)
author
Andrew Bartlett
<abartlet@samba.org>
Fri, 14 Aug 2009 02:57:46 +0000
(12:57 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 14 Aug 2009 02:57:46 +0000
(12:57 +1000)
This talloc_steal also conflicts with the ldb_map code, and like the
previous commit, is rudundent given the talloc_steal of the whole msg
above.
Andrew Bartlett
source4/ldap_server/ldap_backend.c
patch
|
blob
|
history
diff --git
a/source4/ldap_server/ldap_backend.c
b/source4/ldap_server/ldap_backend.c
index d479ff83b4802be88fa2002eaef5917bbdb2e0d8..72366d2db3700ae52da242ee07f2a9e720241a7e 100644
(file)
--- a/
source4/ldap_server/ldap_backend.c
+++ b/
source4/ldap_server/ldap_backend.c
@@
-427,7
+427,7
@@
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;
-
talloc_steal(ent->attributes, res->msgs[i]->elements[j].values)
;
+
ent->attributes = res->msgs[i]->elements[j].values
;
}
queue_reply:
ldapsrv_queue_reply(call, ent_r);