summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-08-06 20:48:17 +1000
committerGünther Deschner <gd@samba.org>2010-08-10 12:13:00 +0200
commit4969b3de632c1545d7ea5997c52b85aa4baaf4d8 (patch)
tree162e3949f35f2ecf3088f0f64ed5dafd156479d5 /source3
parent617ec0733dad40c9441b1e1533fb3d99bf22c24f (diff)
downloadsamba-4969b3de632c1545d7ea5997c52b85aa4baaf4d8.tar.gz
samba-4969b3de632c1545d7ea5997c52b85aa4baaf4d8.tar.bz2
samba-4969b3de632c1545d7ea5997c52b85aa4baaf4d8.zip
s3:ntlmssp Always call ntlmssp_sign_init()
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>
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/ntlmssp.c4
1 files changed, 1 insertions, 3 deletions
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);
}