Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/libcli/composite/composite.c

    r740 r988  
    5656
    5757        while (c->state < COMPOSITE_STATE_DONE) {
    58                 if (event_loop_once(c->event_ctx) != 0) {
     58                if (tevent_loop_once(c->event_ctx) != 0) {
    5959                        return NT_STATUS_UNSUCCESSFUL;
    6060                }
     
    107107        }
    108108        if (!ctx->used_wait && !ctx->async.fn) {
    109                 event_add_timed(ctx->event_ctx, ctx, timeval_zero(), composite_trigger, ctx);
     109                tevent_add_timer(ctx->event_ctx, ctx, timeval_zero(), composite_trigger, ctx);
    110110        }
    111111        ctx->status = status;
     
    137137{
    138138        if (!ctx->used_wait && !ctx->async.fn) {
    139                 event_add_timed(ctx->event_ctx, ctx, timeval_zero(), composite_trigger, ctx);
     139                tevent_add_timer(ctx->event_ctx, ctx, timeval_zero(), composite_trigger, ctx);
    140140        }
    141141        ctx->state = COMPOSITE_STATE_DONE;
     
    158158           immediate event, otherwise we can be stuck forever */
    159159        if (new_ctx->state >= COMPOSITE_STATE_DONE && continuation) {
    160                 event_add_timed(new_ctx->event_ctx, new_ctx, timeval_zero(), composite_trigger, new_ctx);
     160                tevent_add_timer(new_ctx->event_ctx, new_ctx, timeval_zero(), composite_trigger, new_ctx);
    161161        }
    162162}
     
    168168{
    169169        if (composite_nomem(new_req, ctx)) return;
     170        if (new_req->state > SMBCLI_REQUEST_RECV) {
     171                composite_error(ctx, new_req->status);
     172                return;
     173        }
    170174        new_req->async.fn = continuation;
    171175        new_req->async.private_data = private_data;
     
    178182{
    179183        if (composite_nomem(new_req, ctx)) return;
     184        if (new_req->state > SMB2_REQUEST_RECV) {
     185                composite_error(ctx, new_req->status);
     186                return;
     187        }
    180188        new_req->async.fn = continuation;
    181189        new_req->async.private_data = private_data;
Note: See TracChangeset for help on using the changeset viewer.