mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
For ads_destroy(), this has a mode where the memory is not destroyed but is being re-initialized. Horrid, but that's the way it works right now. This clears out the memory, but also leaves ads->ldap as a valid (zero) IPaddr. Otherwise it's left by accident as AF_UNSPEC (0). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>