s3-ntlmssp Remove a level of nesting in if/else statement
authorAndrew Bartlett <abartlet@samba.org>
Tue, 2 Aug 2011 13:17:02 +0000 (23:17 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 3 Aug 2011 08:48:05 +0000 (18:48 +1000)
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) {