Commit bf5f6e1b authored by Vladimír Čunát's avatar Vladimír Čunát

Merge !454: daemon/worker: fix regression from e7c5c102

parents eabf8d64 2072c6b0
......@@ -1753,6 +1753,7 @@ int worker_submit(struct worker_ctx *worker, uv_handle_t *handle,
request_free(ctx);
return kr_error(ENOMEM);
}
addr = NULL;
} else if (query) { /* response from upstream */
task = find_task(session, knot_wire_get_id(query->wire));
if (task == NULL) {
......@@ -1763,7 +1764,7 @@ int worker_submit(struct worker_ctx *worker, uv_handle_t *handle,
assert(uv_is_closing(session->handle) == false);
/* Consume input and produce next message */
return qr_task_step(task, NULL, query);
return qr_task_step(task, addr, query);
}
static int map_add_tcp_session(map_t *map, const struct sockaddr* addr,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment