Changeset 204 for branches/samba-3.2.x/source/libsmb/async_smb.c
- Timestamp:
- May 20, 2009, 6:46:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/libsmb/async_smb.c
r149 r204 320 320 struct cli_state *cli = (struct cli_state *)p; 321 321 struct cli_request *req; 322 NTSTATUS status; 322 323 323 324 DEBUG(11, ("cli_state_handler called with flags %d\n", flags)); … … 332 333 DEBUG(10, ("ioctl(FIONREAD) failed: %s\n", 333 334 strerror(errno))); 335 status = map_nt_error_from_unix(errno); 334 336 goto sock_error; 335 337 } … … 337 339 if (available == 0) { 338 340 /* EOF */ 341 status = NT_STATUS_END_OF_FILE; 339 342 goto sock_error; 340 343 } … … 345 348 if (new_size < old_size) { 346 349 /* wrap */ 350 status = NT_STATUS_UNEXPECTED_IO_ERROR; 347 351 goto sock_error; 348 352 } … … 352 356 if (tmp == NULL) { 353 357 /* nomem */ 358 status = NT_STATUS_NO_MEMORY; 354 359 goto sock_error; 355 360 } … … 359 364 if (res == -1) { 360 365 DEBUG(10, ("recv failed: %s\n", strerror(errno))); 366 status = map_nt_error_from_unix(errno); 361 367 goto sock_error; 362 368 } … … 403 409 404 410 if (sent < 0) { 411 status = map_nt_error_from_unix(errno); 405 412 goto sock_error; 406 413 } … … 416 423 sock_error: 417 424 for (req = cli->outstanding_requests; req; req = req->next) { 418 req->async->state = ASYNC_REQ_ERROR; 419 req->async->status = map_nt_error_from_unix(errno); 425 async_req_error(req->async, status); 420 426 } 421 427 TALLOC_FREE(cli->fd_event);
Note:
See TracChangeset
for help on using the changeset viewer.