diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-02 04:51:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:16 -0500 |
commit | 4183b2ac3832cdc2055d7eb3ed7121a9ea91085c (patch) | |
tree | 880492048be3a307eb82ebc663b4a7d3805dd337 /source4/libcli | |
parent | 3b863542dca8e638cdba6daad043f224d81fcd6a (diff) | |
download | samba-4183b2ac3832cdc2055d7eb3ed7121a9ea91085c.tar.gz samba-4183b2ac3832cdc2055d7eb3ed7121a9ea91085c.tar.bz2 samba-4183b2ac3832cdc2055d7eb3ed7121a9ea91085c.zip |
r4037: fixed a bunch of "might be uninitialised" warnings after enabling -O1 in my compile
(This used to be commit 0928b1f5b68c858922c3ea6c27ed03b5091c6221)
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/auth/ntlmssp_sign.c | 2 | ||||
-rw-r--r-- | source4/libcli/raw/clisession.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source4/libcli/auth/ntlmssp_sign.c b/source4/libcli/auth/ntlmssp_sign.c index e2f5237a88..1b391306bc 100644 --- a/source4/libcli/auth/ntlmssp_sign.c +++ b/source4/libcli/auth/ntlmssp_sign.c @@ -368,6 +368,8 @@ NTSTATUS ntlmssp_sign_init(struct ntlmssp_state *ntlmssp_state) recv_sign_const = CLI_SIGN; recv_seal_const = CLI_SEAL; break; + default: + return NT_STATUS_INTERNAL_ERROR; } /** diff --git a/source4/libcli/raw/clisession.c b/source4/libcli/raw/clisession.c index b7802d8065..c92e3ecb0b 100644 --- a/source4/libcli/raw/clisession.c +++ b/source4/libcli/raw/clisession.c @@ -393,7 +393,7 @@ static NTSTATUS smb_raw_session_setup_generic_spnego(struct smbcli_session *sess union smb_sesssetup s2; DATA_BLOB session_key = data_blob(NULL, 0); DATA_BLOB null_data_blob = data_blob(NULL, 0); - const char *chosen_oid; + const char *chosen_oid = NULL; s2.generic.level = RAW_SESSSETUP_SPNEGO; s2.spnego.in.bufsize = session->transport->options.max_xmit; |