From c7b11a74c924e9ff85117e4edd90dbbeff35c4eb Mon Sep 17 00:00:00 2001 From: Daniel Salzman Date: Mon, 12 May 2025 19:15:25 +0200 Subject: [PATCH] Fix zs_init() callings with empty origin which newly enables autodetection --- src/knot/modules/geoip/geoip.c | 2 +- src/utils/keymgr/offline_ksk.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/knot/modules/geoip/geoip.c b/src/knot/modules/geoip/geoip.c index 84595adb8..d3911a816 100644 --- a/src/knot/modules/geoip/geoip.c +++ b/src/knot/modules/geoip/geoip.c @@ -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; } diff --git a/src/utils/keymgr/offline_ksk.c b/src/utils/keymgr/offline_ksk.c index 436ca1bc2..35a00b99b 100644 --- a/src/utils/keymgr/offline_ksk.c +++ b/src/utils/keymgr/offline_ksk.c @@ -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; }