1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-21 12:59:09 +03:00

ldap_server: Run the ldap_encode() step in ldapsrv_queue_reply()

This avoids holding the memory for the response twice,
by the time the result is queued it is only ASN.1 encoded.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Andrew Bartlett
2019-04-04 16:52:17 +13:00
parent 11c20e03d7
commit fd74b63144
3 changed files with 35 additions and 24 deletions

View File

@ -70,6 +70,7 @@ struct ldapsrv_call {
struct ldapsrv_reply {
struct ldapsrv_reply *prev, *next;
struct ldap_message *msg;
DATA_BLOB blob;
} *replies;
struct iovec out_iov;