From 4969b3de632c1545d7ea5997c52b85aa4baaf4d8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 6 Aug 2010 20:48:17 +1000 Subject: s3:ntlmssp Always call ntlmssp_sign_init() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no code path that sets nt_status before this point, without a return. Andrew Bartlett Signed-off-by: Günther Deschner --- source3/libsmb/ntlmssp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c index 920bf94df8..6815358447 100644 --- a/source3/libsmb/ntlmssp.c +++ b/source3/libsmb/ntlmssp.c @@ -703,9 +703,7 @@ static NTSTATUS ntlmssp_server_auth(struct ntlmssp_state *ntlmssp_state, ntlmssp_state->session_key = session_key; } - if (!NT_STATUS_IS_OK(nt_status)) { - ntlmssp_state->session_key = data_blob_null; - } else if (ntlmssp_state->session_key.length) { + if (ntlmssp_state->session_key.length) { nt_status = ntlmssp_sign_init(ntlmssp_state); } -- cgit