Changeset 740 for vendor/current/source4/libcli/smb2/negprot.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified vendor/current/source4/libcli/smb2/negprot.c ¶
r414 r740 35 35 struct smb2_request *req; 36 36 uint16_t size = 0x24 + io->in.dialect_count*2; 37 enum ndr_err_code ndr_err;38 37 int i; 38 NTSTATUS status; 39 39 40 40 req = smb2_request_init(transport, SMB2_OP_NEGPROT, size, false, 0); … … 47 47 SSVAL(req->out.body, 0x06, io->in.reserved); 48 48 SIVAL(req->out.body, 0x08, io->in.capabilities); 49 ndr_err= smbcli_push_guid(req->out.body, 0x0C, &io->in.client_guid);50 if (!N DR_ERR_CODE_IS_SUCCESS(ndr_err)) {49 status = smbcli_push_guid(req->out.body, 0x0C, &io->in.client_guid); 50 if (!NT_STATUS_IS_OK(status)) { 51 51 talloc_free(req); 52 52 return NULL; … … 69 69 { 70 70 NTSTATUS status; 71 enum ndr_err_code ndr_err;72 71 73 72 if (!smb2_request_receive(req) || … … 81 80 io->out.dialect_revision = SVAL(req->in.body, 0x04); 82 81 io->out.reserved = SVAL(req->in.body, 0x06); 83 ndr_err= smbcli_pull_guid(req->in.body, 0x08, &io->in.client_guid);84 if (!N DR_ERR_CODE_IS_SUCCESS(ndr_err)) {82 status = smbcli_pull_guid(req->in.body, 0x08, &io->in.client_guid); 83 if (!NT_STATUS_IS_OK(status)) { 85 84 smb2_request_destroy(req); 86 return NT_STATUS_INTERNAL_ERROR;85 return status; 87 86 } 88 87 io->out.capabilities = IVAL(req->in.body, 0x18);
Note:
See TracChangeset
for help on using the changeset viewer.