Skip to content
Snippets Groups Projects
Verified Commit f3d4e211 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by Petr Špaček
Browse files

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
No related branches found
No related tags found
1 merge request!641ci: fixes and optimizations
Pipeline #38744 canceled
......@@ -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;
if (i < ENTRY_APEX_NSECS_CNT) {
type = KNOT_RRTYPE_NS;
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) {
VERBOSE_MSG(qry,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment