Use tevent_req_oom
[ira/wip.git] / source3 / torture / wbc_async.c
index 182474c21670048019cab99097e2bcd0b65cb290..9252b58bc98a93ecccf778093bfdab1ed99dc66e 100644 (file)
@@ -551,7 +551,7 @@ struct tevent_req *wb_trans_send(TALLOC_CTX *mem_ctx,
 
        if (!tevent_queue_add(wb_ctx->queue, ev, req, wb_trans_trigger,
                              NULL)) {
-               tevent_req_nomem(NULL, req);
+               tevent_req_oom(req);
                return tevent_req_post(req, ev);
        }
        return req;