2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-04 08:35:31 +00:00

Merge branch 'marka-fix-stub_dlz_allowzonexfr' into 'master'

return ISC_R_NOTFOUND when name does not match the zone name

See merge request isc-projects/bind9!1299
This commit is contained in:
Mark Andrews
2019-01-06 23:06:13 -05:00
2 changed files with 12 additions and 3 deletions

View File

@@ -1,3 +1,6 @@
5121. [contrib] dlz_stub_driver.c fails to return ISC_R_NOTFOUND on none
matching zone names. [GL !1299]
5120. [placeholder]
5119. [placeholder]

View File

@@ -104,11 +104,17 @@ static isc_result_t
stub_dlz_allowzonexfr(void *driverarg, void *dbdata, const char *name,
const char *client)
{
config_data_t *cd;
UNUSED(driverarg);
UNUSED(dbdata);
UNUSED(name);
UNUSED(client);
return ISC_R_SUCCESS;
cd = (config_data_t *) dbdata;
if (strcmp(name, cd->myname) == 0) {
return (ISC_R_SUCCESS);
}
return (ISC_R_NOTFOUND);
}
static isc_result_t