Changeset 988 for vendor/current/libcli/echo
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- Location:
- vendor/current/libcli/echo
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/libcli/echo/echo.c
r740 r988 76 76 &local_addr); 77 77 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)); 79 79 return tevent_req_post(req, ev); 80 80 } … … 83 83 ECHO_PORT, &server_addr); 84 84 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)); 86 86 return tevent_req_post(req, ev); 87 87 } … … 89 89 ret = tdgram_inet_udp_socket(local_addr, server_addr, state, &dgram); 90 90 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)); 92 92 return tevent_req_post(req, ev); 93 93 } … … 133 133 134 134 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)); 136 136 return; 137 137 } … … 169 169 170 170 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); 172 177 return; 173 178 } -
vendor/current/libcli/echo/tests/echo.c
r740 r988 65 65 make_nbt_name_server(&name, 66 66 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); 69 71 if (!NT_STATUS_IS_OK(status)) { 70 72 printf("Failed to resolve %s - %s\n", name.name, -
vendor/current/libcli/echo/tests/wscript_build
r740 r988 5 5 subsystem='smbtorture', 6 6 init_function='torture_libcli_echo_init', 7 deps='LIBTSOCKET UTIL_TEVENTLIBCLI_ECHO',7 deps='LIBTSOCKET tevent-util LIBCLI_ECHO', 8 8 internal_module=True); -
vendor/current/libcli/echo/wscript_build
r740 r988 3 3 bld.SAMBA_SUBSYSTEM('LIBCLI_ECHO', 4 4 source='echo.c', 5 deps='LIBTSOCKET UTIL_TEVENT');5 deps='LIBTSOCKET tevent-util'); 6 6 7 7 bld.RECURSE('tests')
Note:
See TracChangeset
for help on using the changeset viewer.