]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
trust anchors: verbose-log the RRset when adding
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 3 Feb 2017 16:18:35 +0000 (17:18 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 9 Feb 2017 16:42:26 +0000 (17:42 +0100)
lib/dnssec/ta.c

index 4192d8bf611dfa00bea7b8d24b2b224b87ee9f1f..852e84ed8fc79606213d36f6bd20b3508286f606 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "lib/defines.h"
 #include "lib/dnssec/ta.h"
+#include "lib/utils.h"
 
 knot_rrset_t *kr_ta_get(map_t *trust_anchors, const knot_dname_t *name)
 {
@@ -74,10 +75,13 @@ static int insert_ta(map_t *trust_anchors, const knot_dname_t *name,
                knot_rrset_free(&ta_rr, NULL);
                return kr_error(ENOMEM);
        }
+       WITH_VERBOSE {
+               kr_rrset_print(ta_rr, "[ ta ]: new trust anchor state:\n");
+       }
        if (is_new_key) {
                return map_set(trust_anchors, (const char *)name, ta_rr);
        }
-       return kr_ok(); 
+       return kr_ok();
 }
 
 int kr_ta_add(map_t *trust_anchors, const knot_dname_t *name, uint16_t type,