Commit 4a8c3a43 authored by Marek Vavruša's avatar Marek Vavruša

lib: fixed unused return value cid#108843

parent 719f446f
......@@ -256,8 +256,9 @@ static int write_cache(knot_layer_t *ctx, knot_pkt_t *pkt)
if (knot_wire_get_aa(pkt->wire)) {
ret = write_cache_answer(pkt, txn, pool, timestamp);
}
ret = write_cache_authority(pkt, txn, pool, timestamp);
if (ret == KNOT_EOK) {
ret = write_cache_authority(pkt, txn, pool, timestamp);
}
/* Cache full, do what we must. */
if (ret == KNOT_ESPACE) {
......
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