]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
Fix zs_init() callings with empty origin which newly enables autodetection
authorDaniel Salzman <daniel.salzman@nic.cz>
Mon, 12 May 2025 17:15:25 +0000 (19:15 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Mon, 12 May 2025 17:15:25 +0000 (19:15 +0200)
src/knot/modules/geoip/geoip.c
src/utils/keymgr/offline_ksk.c

index 84595adb856427d00a6b8732088c1dbc69729039..d3911a8168337c7383edd2c3427f99adf1ca8e13 100644 (file)
@@ -591,7 +591,7 @@ static int geo_conf_yparse(check_ctx_t *check, geoip_ctx_t *ctx)
                ret = KNOT_ENOMEM;
                goto cleanup;
        }
-       if (zs_init(scanner, NULL, KNOT_CLASS_IN, ctx->ttl) != 0) {
+       if (zs_init(scanner, ".", KNOT_CLASS_IN, ctx->ttl) != 0) {
                ret = KNOT_EPARSEFAIL;
                goto cleanup;
        }
index 436ca1bc2ca228f5515755e70daa8a2a1c3f4ce2..35a00b99be0cf11d10e931bb8483107dbe88bab6 100644 (file)
@@ -507,7 +507,7 @@ static int read_ksr_skr(kdnssec_ctx_t *ctx, const char *infile,
                         void (*cb_header)(zs_scanner_t *), void (*cb_record)(zs_scanner_t *))
 {
        zs_scanner_t sc = { 0 };
-       int ret = zs_init(&sc, "", KNOT_CLASS_IN, 0);
+       int ret = zs_init(&sc, ".", KNOT_CLASS_IN, 0);
        if (ret < 0) {
                return KNOT_ERROR;
        }