Commit f3d4e211 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by Petr Špaček

cache nitpick: avoid verbose-logging of unitialized TTL

Replaced by a visually recognizable dummy value, for simplicity.
These were introduced in commits:
  cache: don't require cached NS for aggresive answers
  cache closest_NS(): factor out the inside of a loop
parent 7e140501
Pipeline #38744 canceled with stages
in 4 minutes and 49 seconds
......@@ -216,7 +216,7 @@ int peek_nosync(kr_layer_t *ctx, knot_pkt_t *pkt)
/* Try the NSEC* parameters in order, until success.
* Let's not mix different parameters for NSEC* RRs in a single proof. */
for (int i = 0; ;) {
int32_t log_new_ttl;
int32_t log_new_ttl = -123456789; /* visually recognizable value */
ret = nsec_p_ttl(el[i], qry, &log_new_ttl);
if (!ret || VERBOSE_STATUS) {
nsec_p_init(&ans.nsec_p, el[i], !ret);
......@@ -645,7 +645,7 @@ static int check_NS_entry(const knot_db_val_t entry, const int i, const bool exa
uint16_t type;
int32_t log_new_ttl;
int32_t log_new_ttl = -123456789; /* visually recognizable value */
const int err = nsec_p_ttl(entry, qry, &log_new_ttl);
if (err) {
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