ldap_server: Run the ldap_encode() step in ldapsrv_queue_reply()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 4 Apr 2019 03:52:17 +0000 (16:52 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 May 2019 04:01:11 +0000 (04:01 +0000)
commitfd74b6314444ff8f1da8fcd8d540a2e88b7b872c
treeb68a7ae6cc272baa984406f0adf5f8d60b57e825
parent11c20e03d7de7099e6f0b8ad0169a82b0e270c80
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>
source4/ldap_server/ldap_backend.c
source4/ldap_server/ldap_server.c
source4/ldap_server/ldap_server.h