From: Stefan Metzmacher Date: Fri, 12 May 2017 10:31:25 +0000 (+0200) Subject: s4:ldap_server: remove useless NT_STATUS_IS_OK(status) check X-Git-Tag: ldb-1.1.31~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=489bc70c43e366d1a82485ce20360eebd45f1b10;p=thirdparty%2Fsamba.git s4:ldap_server: remove useless NT_STATUS_IS_OK(status) check We checked a few lines above already, check with: git show -U10 Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/source4/ldap_server/ldap_bind.c b/source4/ldap_server/ldap_bind.c index 51440cb51ee..3ba7ea39111 100644 --- a/source4/ldap_server/ldap_bind.c +++ b/source4/ldap_server/ldap_bind.c @@ -540,7 +540,7 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call) goto do_reply; } - if (NT_STATUS_IS_OK(status) && context) { + if (context != NULL) { call->postprocess_send = ldapsrv_sasl_postprocess_send; call->postprocess_recv = ldapsrv_sasl_postprocess_recv; call->postprocess_private = context;