s4:ldap_server: remove useless NT_STATUS_IS_OK(status) check
authorStefan Metzmacher <metze@samba.org>
Fri, 12 May 2017 10:31:25 +0000 (12:31 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 15 Jun 2017 07:13:24 +0000 (09:13 +0200)
We checked a few lines above already, check with:
git show -U10

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

index 51440cb51ee2673b4266bec8bd331896c8906fa4..3ba7ea391112bc5b2d04034d5588866e0c423e60 100644 (file)
@@ -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;