1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r14414: added some error checks

This commit is contained in:
Andrew Tridgell 2006-03-15 02:42:21 +00:00 committed by Gerald (Jerry) Carter
parent c43a7ec7ac
commit cd9f3adc75

View 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);