s3:ntlmssp Always call ntlmssp_sign_init()
authorAndrew Bartlett <abartlet@samba.org>
Fri, 6 Aug 2010 10:48:17 +0000 (20:48 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 9 Aug 2010 06:30:43 +0000 (16:30 +1000)
There is no code path that sets nt_status before this point, without
a return.

Andrew Bartlett

source3/libsmb/ntlmssp.c

index ffd8f5e3fb51e3b1548d8f81595ea05b98f066c2..81ac5b02d03f50f85d0177770f687fb61cc0a89f 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);
        }