Commit 042164df authored by Grigorii Demidov's avatar Grigorii Demidov

daemon/worker: ignore KNOT_ETRAIL when saving source packet

parent b8535938
Pipeline #42377 failed with stages
in 44 minutes and 25 seconds
......@@ -363,7 +363,9 @@ static int request_start(struct request_ctx *ctx, knot_pkt_t *query)
if (!pkt) {
return kr_error(ENOMEM);
}
if (knot_pkt_copy(pkt, query) != 0) {
int ret = knot_pkt_copy(pkt, query);
if (ret != KNOT_EOK && ret != KNOT_ETRAIL) {
return kr_error(ENOMEM);
}
req->qsource.packet = pkt;
......
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