summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-15 02:42:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:20 -0500
commit72a7052fa76777390c3cb45e035e7d8c557af84d (patch)
tree7f5aedb6d1264c8af843322775e82cedbceb759c /source4
parentf479571502750c2399103bbdd104966125ce3818 (diff)
downloadsamba-72a7052fa76777390c3cb45e035e7d8c557af84d.tar.gz
samba-72a7052fa76777390c3cb45e035e7d8c557af84d.tar.bz2
samba-72a7052fa76777390c3cb45e035e7d8c557af84d.zip
r14414: added some error checks
(This used to be commit cd9f3adc759f1dc29043c435febfe78e56fece1b)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/smb_composite/sesssetup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/libcli/smb_composite/sesssetup.c b/source4/libcli/smb_composite/sesssetup.c
index 318fc9fbed..0f00d5f9c0 100644
--- a/source4/libcli/smb_composite/sesssetup.c
+++ b/source4/libcli/smb_composite/sesssetup.c
@@ -178,6 +178,7 @@ static NTSTATUS session_setup_nt1(struct composite_context *c,
&state->setup.nt1.in.password1,
&state->setup.nt1.in.password2,
NULL, &session_key);
+ NT_STATUS_NOT_OK_RETURN(nt_status);
smbcli_transport_simple_set_signing(session->transport, session_key,
state->setup.nt1.in.password2);
@@ -241,6 +242,7 @@ static NTSTATUS session_setup_old(struct composite_context *c,
&state->setup.old.in.password,
NULL,
NULL, &session_key);
+ NT_STATUS_NOT_OK_RETURN(nt_status);
set_user_session_key(session, &session_key);
data_blob_free(&session_key);