Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (12 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified vendor/current/source4/libcli/smb2/negprot.c

    r414 r740  
    3535        struct smb2_request *req;
    3636        uint16_t size = 0x24 + io->in.dialect_count*2;
    37         enum ndr_err_code ndr_err;
    3837        int i;
     38        NTSTATUS status;
    3939
    4040        req = smb2_request_init(transport, SMB2_OP_NEGPROT, size, false, 0);
     
    4747        SSVAL(req->out.body, 0x06, io->in.reserved);
    4848        SIVAL(req->out.body, 0x08, io->in.capabilities);
    49         ndr_err = smbcli_push_guid(req->out.body, 0x0C, &io->in.client_guid);
    50         if (!NDR_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)) {
    5151                talloc_free(req);
    5252                return NULL;
     
    6969{
    7070        NTSTATUS status;
    71         enum ndr_err_code ndr_err;
    7271
    7372        if (!smb2_request_receive(req) ||
     
    8180        io->out.dialect_revision   = SVAL(req->in.body, 0x04);
    8281        io->out.reserved           = SVAL(req->in.body, 0x06);
    83         ndr_err = smbcli_pull_guid(req->in.body, 0x08, &io->in.client_guid);
    84         if (!NDR_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)) {
    8584                smb2_request_destroy(req);
    86                 return NT_STATUS_INTERNAL_ERROR;
     85                return status;
    8786        }
    8887        io->out.capabilities       = IVAL(req->in.body, 0x18);
Note: See TracChangeset for help on using the changeset viewer.