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/source4/libcli/wrepl/winsrepl.c

    r740 r988  
    137137{
    138138        struct interface *ifaces;
    139         load_interfaces(lp_ctx, lpcfg_interfaces(lp_ctx), &ifaces);
    140         return iface_best_ip(ifaces, peer_ip);
     139        load_interface_list(lp_ctx, lp_ctx, &ifaces);
     140        return iface_list_best_ip(ifaces, peer_ip);
    141141}
    142142
     
    182182                                                &state->local_address);
    183183        if (ret != 0) {
    184                 NTSTATUS status = map_nt_error_from_unix(errno);
     184                NTSTATUS status = map_nt_error_from_unix_common(errno);
    185185                tevent_req_nterror(req, status);
    186186                return tevent_req_post(req, ev);
     
    191191                                                &state->remote_address);
    192192        if (ret != 0) {
    193                 NTSTATUS status = map_nt_error_from_unix(errno);
     193                NTSTATUS status = map_nt_error_from_unix_common(errno);
    194194                tevent_req_nterror(req, status);
    195195                return tevent_req_post(req, ev);
     
    202202                              NULL);
    203203        if (!ok) {
    204                 tevent_req_nomem(NULL, req);
     204                tevent_req_oom(req);
    205205                return tevent_req_post(req, ev);
    206206        }
     
    251251                                            state, &state->stream, NULL);
    252252        if (ret != 0) {
    253                 NTSTATUS status = map_nt_error_from_unix(sys_errno);
     253                NTSTATUS status = map_nt_error_from_unix_common(sys_errno);
    254254                tevent_req_nterror(req, status);
    255255                return;
     
    360360
    361361        if (wrepl_socket->stream == NULL) {
    362                 tevent_req_nterror(req, NT_STATUS_INVALID_CONNECTION);
     362                tevent_req_nterror(req, NT_STATUS_CONNECTION_DISCONNECTED);
    363363                return tevent_req_post(req, ev);
    364364        }
     
    383383                              NULL);
    384384        if (!ok) {
    385                 tevent_req_nomem(NULL, req);
     385                tevent_req_oom(req);
    386386                return tevent_req_post(req, ev);
    387387        }
     
    409409
    410410        if (state->caller.wrepl_socket->stream == NULL) {
    411                 tevent_req_nterror(req, NT_STATUS_INVALID_CONNECTION);
     411                tevent_req_nterror(req, NT_STATUS_CONNECTION_DISCONNECTED);
    412412                return;
    413413        }
     
    444444        TALLOC_FREE(subreq);
    445445        if (ret == -1) {
    446                 NTSTATUS status = map_nt_error_from_unix(sys_errno);
     446                NTSTATUS status = map_nt_error_from_unix_common(sys_errno);
    447447                TALLOC_FREE(state->caller.wrepl_socket->stream);
    448448                tevent_req_nterror(req, status);
     
    451451
    452452        if (state->caller.wrepl_socket->stream == NULL) {
    453                 tevent_req_nterror(req, NT_STATUS_INVALID_CONNECTION);
     453                tevent_req_nterror(req, NT_STATUS_CONNECTION_DISCONNECTED);
    454454                return;
    455455        }
     
    495495        TALLOC_FREE(subreq);
    496496        if (ret == -1) {
    497                 NTSTATUS status = map_nt_error_from_unix(sys_errno);
     497                NTSTATUS status = map_nt_error_from_unix_common(sys_errno);
    498498                TALLOC_FREE(state->caller.wrepl_socket->stream);
    499499                tevent_req_nterror(req, status);
Note: See TracChangeset for help on using the changeset viewer.