r14414: added some error checks
authorAndrew Tridgell <tridge@samba.org>
Wed, 15 Mar 2006 02:42:21 +0000 (02:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:57:20 +0000 (13:57 -0500)
(This used to be commit cd9f3adc759f1dc29043c435febfe78e56fece1b)

source4/libcli/smb_composite/sesssetup.c

index 318fc9fbed7c720db4bebae751be8fda143efd66..0f00d5f9c0f039a23c74093fc6c807b2e05dda6e 100644 (file)
@@ -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);