Changeset 988 for vendor/current/source3/libsmb/climessage.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/libsmb/climessage.c
r740 r988 22 22 #include "async_smb.h" 23 23 #include "libsmb/libsmb.h" 24 #include "../libcli/smb/smbXcli_base.h" 24 25 25 26 struct cli_message_start_state { … … 50 51 if (!convert_string_talloc(talloc_tos(), CH_UNIX, CH_DOS, 51 52 username, strlen(username)+1, 52 &utmp, &ulen , true)) {53 &utmp, &ulen)) { 53 54 goto fail; 54 55 } 55 56 if (!convert_string_talloc(talloc_tos(), CH_UNIX, CH_DOS, 56 57 host, strlen(host)+1, 57 &htmp, &hlen , true)) {58 &htmp, &hlen)) { 58 59 goto fail; 59 60 } … … 97 98 uint8_t wct; 98 99 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, 102 102 NULL, NULL); 103 103 TALLOC_FREE(subreq); … … 157 157 158 158 if (convert_string_talloc(talloc_tos(), CH_UNIX, CH_DOS, msg, msglen, 159 &tmp, &tmplen , true)) {159 &tmp, &tmplen)) { 160 160 msg = tmp; 161 161 msglen = tmplen; … … 385 385 { 386 386 TALLOC_CTX *frame = talloc_stackframe(); 387 struct event_context *ev;387 struct tevent_context *ev; 388 388 struct tevent_req *req; 389 389 NTSTATUS status = NT_STATUS_OK; 390 390 391 if ( cli_has_async_calls(cli)) {391 if (smbXcli_conn_has_async_calls(cli->conn)) { 392 392 /* 393 393 * Can't use sync call while an async call is in flight … … 397 397 } 398 398 399 ev = event_context_init(frame);399 ev = samba_tevent_context_init(frame); 400 400 if (ev == NULL) { 401 401 status = NT_STATUS_NO_MEMORY; … … 409 409 } 410 410 411 if (!tevent_req_poll(req, ev)) { 412 status = map_nt_error_from_unix(errno); 411 if (!tevent_req_poll_ntstatus(req, ev, &status)) { 413 412 goto fail; 414 413 }
Note:
See TracChangeset
for help on using the changeset viewer.