s4:ldap_server: make sure we destroy the gensec context on error
authorStefan Metzmacher <metze@samba.org>
Fri, 12 May 2017 10:44:05 +0000 (12:44 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 15 Jun 2017 07:13:23 +0000 (09:13 +0200)
commit7605c67e079339c5e1b5b13199a705ece23c0ad6
tree05a25af44f6461fadaa768429e550ed12d332151
parente8d431250edebf96c1d80aacf2f676c93da907f4
s4:ldap_server: make sure we destroy the gensec context on error

If the client tries a new bind we need to start with a fresh context.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/ldap_server/ldap_bind.c