Ignore:
Timestamp:
May 20, 2009, 6:46:53 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/libsmb/async_smb.c

    r149 r204  
    320320        struct cli_state *cli = (struct cli_state *)p;
    321321        struct cli_request *req;
     322        NTSTATUS status;
    322323
    323324        DEBUG(11, ("cli_state_handler called with flags %d\n", flags));
     
    332333                        DEBUG(10, ("ioctl(FIONREAD) failed: %s\n",
    333334                                   strerror(errno)));
     335                        status = map_nt_error_from_unix(errno);
    334336                        goto sock_error;
    335337                }
     
    337339                if (available == 0) {
    338340                        /* EOF */
     341                        status = NT_STATUS_END_OF_FILE;
    339342                        goto sock_error;
    340343                }
     
    345348                if (new_size < old_size) {
    346349                        /* wrap */
     350                        status = NT_STATUS_UNEXPECTED_IO_ERROR;
    347351                        goto sock_error;
    348352                }
     
    352356                if (tmp == NULL) {
    353357                        /* nomem */
     358                        status = NT_STATUS_NO_MEMORY;
    354359                        goto sock_error;
    355360                }
     
    359364                if (res == -1) {
    360365                        DEBUG(10, ("recv failed: %s\n", strerror(errno)));
     366                        status = map_nt_error_from_unix(errno);
    361367                        goto sock_error;
    362368                }
     
    403409
    404410                if (sent < 0) {
     411                        status = map_nt_error_from_unix(errno);
    405412                        goto sock_error;
    406413                }
     
    416423 sock_error:
    417424        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);
    420426        }
    421427        TALLOC_FREE(cli->fd_event);
Note: See TracChangeset for help on using the changeset viewer.