summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-14 10:06:55 +0200
committerVolker Lendecke <vl@samba.org>2010-08-14 10:08:45 +0200
commit19280b65a5744ffc23fae1918f371582a237c195 (patch)
treef7ceffd9262edfee2ebddd45f4cd5b4b77f53b46 /source3
parent4f8ef205ac05cfb445e1252b02faccf9f442f1c3 (diff)
downloadsamba-19280b65a5744ffc23fae1918f371582a237c195.tar.gz
samba-19280b65a5744ffc23fae1918f371582a237c195.tar.bz2
samba-19280b65a5744ffc23fae1918f371582a237c195.zip
s3: Fix an uninitialized variable
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/ntlmssp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index 6958a0dd16..477b94c1d0 100644
--- a/source3/libsmb/ntlmssp.c
+++ b/source3/libsmb/ntlmssp.c
@@ -243,6 +243,9 @@ NTSTATUS ntlmssp_update(struct ntlmssp_state *ntlmssp_state,
/* 'datagram' mode - no neg packet */
ntlmssp_command = NTLMSSP_NEGOTIATE;
break;
+ default:
+ DEBUG(1, ("Invalid role: %d\n", ntlmssp_state->role));
+ return NT_STATUS_INVALID_PARAMETER;
}
} else {
if (!msrpc_parse(ntlmssp_state, &input, "Cd",