Changeset 988 for vendor/current/source4/libcli/composite
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/libcli/composite/composite.c
r740 r988 56 56 57 57 while (c->state < COMPOSITE_STATE_DONE) { 58 if ( event_loop_once(c->event_ctx) != 0) {58 if (tevent_loop_once(c->event_ctx) != 0) { 59 59 return NT_STATUS_UNSUCCESSFUL; 60 60 } … … 107 107 } 108 108 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); 110 110 } 111 111 ctx->status = status; … … 137 137 { 138 138 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); 140 140 } 141 141 ctx->state = COMPOSITE_STATE_DONE; … … 158 158 immediate event, otherwise we can be stuck forever */ 159 159 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); 161 161 } 162 162 } … … 168 168 { 169 169 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 } 170 174 new_req->async.fn = continuation; 171 175 new_req->async.private_data = private_data; … … 178 182 { 179 183 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 } 180 188 new_req->async.fn = continuation; 181 189 new_req->async.private_data = private_data;
Note:
See TracChangeset
for help on using the changeset viewer.