Changeset 988 for vendor/current/source4/libcli/wrepl
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/libcli/wrepl/winsrepl.c
r740 r988 137 137 { 138 138 struct interface *ifaces; 139 load_interface s(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); 141 141 } 142 142 … … 182 182 &state->local_address); 183 183 if (ret != 0) { 184 NTSTATUS status = map_nt_error_from_unix (errno);184 NTSTATUS status = map_nt_error_from_unix_common(errno); 185 185 tevent_req_nterror(req, status); 186 186 return tevent_req_post(req, ev); … … 191 191 &state->remote_address); 192 192 if (ret != 0) { 193 NTSTATUS status = map_nt_error_from_unix (errno);193 NTSTATUS status = map_nt_error_from_unix_common(errno); 194 194 tevent_req_nterror(req, status); 195 195 return tevent_req_post(req, ev); … … 202 202 NULL); 203 203 if (!ok) { 204 tevent_req_ nomem(NULL,req);204 tevent_req_oom(req); 205 205 return tevent_req_post(req, ev); 206 206 } … … 251 251 state, &state->stream, NULL); 252 252 if (ret != 0) { 253 NTSTATUS status = map_nt_error_from_unix (sys_errno);253 NTSTATUS status = map_nt_error_from_unix_common(sys_errno); 254 254 tevent_req_nterror(req, status); 255 255 return; … … 360 360 361 361 if (wrepl_socket->stream == NULL) { 362 tevent_req_nterror(req, NT_STATUS_ INVALID_CONNECTION);362 tevent_req_nterror(req, NT_STATUS_CONNECTION_DISCONNECTED); 363 363 return tevent_req_post(req, ev); 364 364 } … … 383 383 NULL); 384 384 if (!ok) { 385 tevent_req_ nomem(NULL,req);385 tevent_req_oom(req); 386 386 return tevent_req_post(req, ev); 387 387 } … … 409 409 410 410 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); 412 412 return; 413 413 } … … 444 444 TALLOC_FREE(subreq); 445 445 if (ret == -1) { 446 NTSTATUS status = map_nt_error_from_unix (sys_errno);446 NTSTATUS status = map_nt_error_from_unix_common(sys_errno); 447 447 TALLOC_FREE(state->caller.wrepl_socket->stream); 448 448 tevent_req_nterror(req, status); … … 451 451 452 452 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); 454 454 return; 455 455 } … … 495 495 TALLOC_FREE(subreq); 496 496 if (ret == -1) { 497 NTSTATUS status = map_nt_error_from_unix (sys_errno);497 NTSTATUS status = map_nt_error_from_unix_common(sys_errno); 498 498 TALLOC_FREE(state->caller.wrepl_socket->stream); 499 499 tevent_req_nterror(req, status);
Note:
See TracChangeset
for help on using the changeset viewer.