Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/libsmb/climessage.c

    r740 r988  
    2222#include "async_smb.h"
    2323#include "libsmb/libsmb.h"
     24#include "../libcli/smb/smbXcli_base.h"
    2425
    2526struct cli_message_start_state {
     
    5051        if (!convert_string_talloc(talloc_tos(), CH_UNIX, CH_DOS,
    5152                                   username, strlen(username)+1,
    52                                    &utmp, &ulen, true)) {
     53                                   &utmp, &ulen)) {
    5354                goto fail;
    5455        }
    5556        if (!convert_string_talloc(talloc_tos(), CH_UNIX, CH_DOS,
    5657                                   host, strlen(host)+1,
    57                                    &htmp, &hlen, true)) {
     58                                   &htmp, &hlen)) {
    5859                goto fail;
    5960        }
     
    9798        uint8_t wct;
    9899        uint16_t *vwv;
    99         uint8_t *inbuf;
    100 
    101         status = cli_smb_recv(subreq, state, &inbuf, 0, &wct, &vwv,
     100
     101        status = cli_smb_recv(subreq, state, NULL, 0, &wct, &vwv,
    102102                              NULL, NULL);
    103103        TALLOC_FREE(subreq);
     
    157157
    158158        if (convert_string_talloc(talloc_tos(), CH_UNIX, CH_DOS, msg, msglen,
    159                                   &tmp, &tmplen, true)) {
     159                                  &tmp, &tmplen)) {
    160160                msg = tmp;
    161161                msglen = tmplen;
     
    385385{
    386386        TALLOC_CTX *frame = talloc_stackframe();
    387         struct event_context *ev;
     387        struct tevent_context *ev;
    388388        struct tevent_req *req;
    389389        NTSTATUS status = NT_STATUS_OK;
    390390
    391         if (cli_has_async_calls(cli)) {
     391        if (smbXcli_conn_has_async_calls(cli->conn)) {
    392392                /*
    393393                 * Can't use sync call while an async call is in flight
     
    397397        }
    398398
    399         ev = event_context_init(frame);
     399        ev = samba_tevent_context_init(frame);
    400400        if (ev == NULL) {
    401401                status = NT_STATUS_NO_MEMORY;
     
    409409        }
    410410
    411         if (!tevent_req_poll(req, ev)) {
    412                 status = map_nt_error_from_unix(errno);
     411        if (!tevent_req_poll_ntstatus(req, ev, &status)) {
    413412                goto fail;
    414413        }
Note: See TracChangeset for help on using the changeset viewer.