s3:ntlmssp Always call ntlmssp_sign_init()
authorAndrew Bartlett <abartlet@samba.org>
Fri, 6 Aug 2010 10:48:17 +0000 (20:48 +1000)
committerGünther Deschner <gd@samba.org>
Tue, 10 Aug 2010 10:13:00 +0000 (12:13 +0200)
There is no code path that sets nt_status before this point, without
a return.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
source3/libsmb/ntlmssp.c

index 920bf94df8e38b1beb453411fd71b3f25a476d78..681535844779eed982f0401f1e4bdebd5d555443 100644 (file)
@@ -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);
        }