Fix zs_init() callings with empty origin which newly enables autodetection

This commit is contained in:
Daniel Salzman 2025-05-12 19:15:25 +02:00
parent 4560a2a733
commit c7b11a74c9
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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;
}