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

Location:
vendor/current/libcli/echo
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/libcli/echo/echo.c

    r740 r988  
    7676                                                &local_addr);
    7777        if (ret != 0) {
    78                 tevent_req_nterror(req, map_nt_error_from_unix(ret));
     78                tevent_req_nterror(req, map_nt_error_from_unix_common(ret));
    7979                return tevent_req_post(req, ev);
    8080        }
     
    8383                                                ECHO_PORT, &server_addr);
    8484        if (ret != 0) {
    85                 tevent_req_nterror(req, map_nt_error_from_unix(ret));
     85                tevent_req_nterror(req, map_nt_error_from_unix_common(ret));
    8686                return tevent_req_post(req, ev);
    8787        }
     
    8989        ret = tdgram_inet_udp_socket(local_addr, server_addr, state, &dgram);
    9090        if (ret != 0) {
    91                 tevent_req_nterror(req, map_nt_error_from_unix(ret));
     91                tevent_req_nterror(req, map_nt_error_from_unix_common(ret));
    9292                return tevent_req_post(req, ev);
    9393        }
     
    133133
    134134        if (len == -1 && err != 0) {
    135                 tevent_req_nterror(req, map_nt_error_from_unix(err));
     135                tevent_req_nterror(req, map_nt_error_from_unix_common(err));
    136136                return;
    137137        }
     
    169169
    170170        if (len == -1 && err != 0) {
    171                 tevent_req_nterror(req, map_nt_error_from_unix(err));
     171                tevent_req_nterror(req, map_nt_error_from_unix_common(err));
     172                return;
     173        }
     174
     175        if (len != state->orig_len) {
     176                tevent_req_nterror(req, NT_STATUS_INVALID_NETWORK_RESPONSE);
    172177                return;
    173178        }
  • vendor/current/libcli/echo/tests/echo.c

    r740 r988  
    6565        make_nbt_name_server(&name,
    6666                             torture_setting_string(tctx, "host", NULL));
    67         status = resolve_name(lpcfg_resolve_context(tctx->lp_ctx), &name, tctx,
    68                               &address, tctx->ev);
     67        status = resolve_name_ex(lpcfg_resolve_context(tctx->lp_ctx),
     68                                 0, 0,
     69                                 &name, tctx,
     70                                 &address, tctx->ev);
    6971        if (!NT_STATUS_IS_OK(status)) {
    7072                printf("Failed to resolve %s - %s\n", name.name,
  • vendor/current/libcli/echo/tests/wscript_build

    r740 r988  
    55        subsystem='smbtorture',
    66        init_function='torture_libcli_echo_init',
    7         deps='LIBTSOCKET UTIL_TEVENT LIBCLI_ECHO',
     7        deps='LIBTSOCKET tevent-util LIBCLI_ECHO',
    88        internal_module=True);
  • vendor/current/libcli/echo/wscript_build

    r740 r988  
    33bld.SAMBA_SUBSYSTEM('LIBCLI_ECHO',
    44        source='echo.c',
    5         deps='LIBTSOCKET UTIL_TEVENT');
     5        deps='LIBTSOCKET tevent-util');
    66
    77bld.RECURSE('tests')
Note: See TracChangeset for help on using the changeset viewer.