summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-08-02 23:17:02 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-03 18:48:05 +1000
commit1dbdddf223b5beb873505164310862b6bd2093d2 (patch)
treefa73024fef3726f2cb0431a59608200f6bdba4e0
parent7b1d6a6a0568a62943877c61d95f6d7bb1fd1d1d (diff)
downloadsamba-1dbdddf223b5beb873505164310862b6bd2093d2.tar.gz
samba-1dbdddf223b5beb873505164310862b6bd2093d2.tar.bz2
samba-1dbdddf223b5beb873505164310862b6bd2093d2.zip
s3-ntlmssp Remove a level of nesting in if/else statement
-rw-r--r--source3/auth/auth_ntlmssp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/auth/auth_ntlmssp.c b/source3/auth/auth_ntlmssp.c
index cccb319ccc..392955685c 100644
--- a/source3/auth/auth_ntlmssp.c
+++ b/source3/auth/auth_ntlmssp.c
@@ -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) {