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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user