tree connect after session setup

This commit is contained in:
Kelvin Sherlock 2014-09-03 14:54:34 -04:00
parent b8ea992aa6
commit 288e7ea7dc
1 changed files with 8 additions and 1 deletions

9
smb.c
View File

@ -654,6 +654,7 @@ int negotiate(Word ipid, uint16_t *path)
// send a second session_setup if STATUS_MORE_PROCESSING_REQUIRED
if (tmp)
{
uint32_t status;
setup_req.security_buffer_length = sizeof(setup2);
write_message(ipid, &setup_req, sizeof(setup_req), setup2, sizeof(setup2));
@ -671,8 +672,14 @@ int negotiate(Word ipid, uint16_t *path)
return -1;
}
status = responsePtr->header.status == STATUS_MORE_PROCESSING_REQUIRED;
DisposeHandle(h);
return -1;
if (status != 0)
{
fprintf(stderr, "Session error: %08lx\n", status);
return -1;
}
}