mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-05-28 04:02:31 -04:00
Fix zs_init() callings with empty origin which newly enables autodetection
This commit is contained in:
parent
4560a2a733
commit
c7b11a74c9
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue