dirmngr: Change interrogate_ldap_dn for better memory semantics.
* dirmngr/ks-engine-ldap.c (interrogate_ldap_dn): Return BASEDN found, memory allocated. (my_ldap_connect): Follow the change, removing needless allocation.
(cherry picked from commit 4b2066afb4988c32a030330acf51b7b0dc190041)
- GnuPG-bug-id: T6047
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>