2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

return ISC_R_NOTFOUND when name does not match the zone name

This commit is contained in:
Mark Andrews 2019-01-02 13:37:31 +11:00
parent 3485fe4b86
commit 402190df18

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