diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-05-12 12:41:13 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-06-15 09:13:24 +0200 |
commit | 9f23a88fd3b01a7f553f7587826a5b4bad174a41 (patch) | |
tree | f5e76ce5580aef32b277f29deaa8f09e10330d7b /source4/ldap_server | |
parent | 772b816c4488db36f48de98a88c3962aadc0f7ca (diff) | |
download | samba-9f23a88fd3b01a7f553f7587826a5b4bad174a41.tar.gz |
s4:ldap_server: set result = LDAP_SUCCESS at the end, when we're really done
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/ldap_server')
-rw-r--r-- | source4/ldap_server/ldap_bind.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/ldap_server/ldap_bind.c b/source4/ldap_server/ldap_bind.c index 71376429756..9336d167aa5 100644 --- a/source4/ldap_server/ldap_bind.c +++ b/source4/ldap_server/ldap_bind.c @@ -436,9 +436,6 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call) goto do_reply; } - result = LDAP_SUCCESS; - errstr = NULL; - if (gensec_have_feature(conn->gensec, GENSEC_FEATURE_SIGN) || gensec_have_feature(conn->gensec, GENSEC_FEATURE_SEAL)) { @@ -553,6 +550,8 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call) conn->gensec = NULL; *resp->SASL.secblob = output; + result = LDAP_SUCCESS; + errstr = NULL; do_reply: if (result != LDAP_SASL_BIND_IN_PROGRESS) { |