s3-ntlmssp Remove a level of nesting in if/else statement
[amitay/samba.git] / source3 / auth / auth_ntlmssp.c
index cccb319ccc63efd989fe1090e8435321bd0cecb2..392955685c93f1571a4a4bd9edab2c54f3eeddb9 100644 (file)
@@ -223,10 +223,9 @@ NTSTATUS auth_ntlmssp_prepare(const struct tsocket_address *remote_address,
                if (!NT_STATUS_IS_OK(nt_status)) {
                        TALLOC_FREE(ans);
                        return nt_status;
-               } else {
-                       *auth_ntlmssp_state = ans;
-                       return NT_STATUS_OK;
                }
+               *auth_ntlmssp_state = ans;
+               return NT_STATUS_OK;
        }
 
        if ((enum server_role)lp_server_role() == ROLE_STANDALONE) {