]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/zonecut: get rid off incorrect function name
authorGrigorii Demidov <grigorii.demidov@nic.cz>
Fri, 2 Mar 2018 11:34:09 +0000 (12:34 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Fri, 6 Apr 2018 13:20:31 +0000 (15:20 +0200)
lib/resolve.c
lib/zonecut.c
lib/zonecut.h

index 630bcf4bd71f2e460f14d06a4a69465a53019cc5..e655f39c25387a9460f555aaddcac6e96f2e4f9c 100644 (file)
@@ -268,7 +268,7 @@ static int ns_fetch_cut(struct kr_query *qry, const knot_dname_t *requested_name
        }
        /* Check if any DNSKEY found for cached cut */
        if (qry->flags.DNSSEC_WANT && cut_found.key == NULL &&
-           !kr_zonecut_is_any_glue(&cut_found)) {
+           !kr_zonecut_has_glue(&cut_found)) {
                /* Cut found and there are no proofs of zone insecurity.
                 * But no DNSKEY found and no glue fetched.
                 * We have got circular dependency - must fetch A\AAAA
index 5c0564def13200ae6a4dd33349d8770a095b7c0e..dacf3f2669273632abc52ba6a71c37e5f559f34e 100644 (file)
@@ -250,7 +250,7 @@ pack_t *kr_zonecut_find(struct kr_zonecut *cut, const knot_dname_t *ns)
        return map_get(nsset, key);
 }
 
-static int is_any_glue(const char *k, void *v, void *baton)
+static int has_glue(const char *k, void *v, void *baton)
 {
        bool *glue_found = (bool *)baton;
        if (*glue_found) {
@@ -265,7 +265,7 @@ static int is_any_glue(const char *k, void *v, void *baton)
        return kr_ok();
 }
 
-bool kr_zonecut_is_any_glue(struct kr_zonecut *cut)
+bool kr_zonecut_has_glue(struct kr_zonecut *cut)
 {
        if (!cut) {
                return false;
@@ -274,7 +274,7 @@ bool kr_zonecut_is_any_glue(struct kr_zonecut *cut)
        bool glue_found = false;
        map_t *nsset = &cut->nsset;
 
-       map_walk(nsset, is_any_glue, &glue_found);
+       map_walk(nsset, has_glue, &glue_found);
        return glue_found;
 }
 
index bf31fb6b46a7da4d295a521aefc734a477d16a6b..b14dfda30fa3284333aab331937a6d99ecd214aa 100644 (file)
@@ -157,4 +157,4 @@ int kr_zonecut_find_cached(struct kr_context *ctx, struct kr_zonecut *cut,
  * @return true/false
  */
 KR_EXPORT
-bool kr_zonecut_is_any_glue(struct kr_zonecut *cut);
+bool kr_zonecut_has_glue(struct kr_zonecut *cut);