From: Marek VavruĊĦa Date: Sun, 19 Apr 2015 19:41:12 +0000 (+0200) Subject: lib: fixed unused return value cid#108843 X-Git-Tag: v1.0.0-beta1~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a8c3a4324f108d85b5b544594be91ef5536f27a;p=thirdparty%2Fknot-resolver.git lib: fixed unused return value cid#108843 --- diff --git a/lib/layer/itercache.c b/lib/layer/itercache.c index 166708ec7..3abd81803 100644 --- a/lib/layer/itercache.c +++ b/lib/layer/itercache.c @@ -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) {