diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-08-08 16:26:12 +0200 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-08-23 11:52:52 +0200 |
commit | cd103d955d025972bdece75a8c78739384e75e9a (patch) | |
tree | e368dad0005a9e8de7c2855076f7ead950ccb7be /lib/rules | |
parent | Merge tag 'v5.7.0' into 6.0 (diff) | |
download | knot-resolver-cd103d955d025972bdece75a8c78739384e75e9a.tar.xz knot-resolver-cd103d955d025972bdece75a8c78739384e75e9a.zip |
lib/rules: tiny bugfix for (most) subtree rules
Diffstat (limited to 'lib/rules')
-rw-r--r-- | lib/rules/api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rules/api.c b/lib/rules/api.c index 03fa1bc5..99c0b36b 100644 --- a/lib/rules/api.c +++ b/lib/rules/api.c @@ -418,7 +418,7 @@ int rule_local_data_answer(struct kr_query *qry, knot_pkt_t *pkt) ret = answer_zla_empty(ztype, qry, pkt, zla_lf, ttl); if (ret == kr_error(EAGAIN)) goto shorten; - return ret; + return ret ? ret : RET_ANSWERED; case VAL_ZLAT_REDIRECT: ret = answer_zla_redirect(qry, pkt, ruleset_name, zla_lf, ttl); return ret ? kr_error(ret) : RET_ANSWERED; |