ldap_server: Avoid talloc_memdup() for ldap_decode()
authorVolker Lendecke <vl@samba.org>
Mon, 10 Aug 2020 12:47:26 +0000 (14:47 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 17 Aug 2020 09:46:36 +0000 (09:46 +0000)
commit86ab46766768dd3fee40f6c61431395fb099fb73
treeb87f391dedd476beb964b5ce2f6bea528e89c75d
parent0cb61c6fb6a11836dfd35e5e45858ea395b13087
ldap_server: Avoid talloc_memdup() for ldap_decode()

Slight optimization for the ldap server: We don't need to copy the
client PDU into the ASN1 struct, the decoding process happens
immediately in the same routine.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/ldap_server/ldap_server.c