mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
return ISC_R_NOTFOUND when name does not match the zone name
This commit is contained in:
@@ -104,11 +104,17 @@ static isc_result_t
|
|||||||
stub_dlz_allowzonexfr(void *driverarg, void *dbdata, const char *name,
|
stub_dlz_allowzonexfr(void *driverarg, void *dbdata, const char *name,
|
||||||
const char *client)
|
const char *client)
|
||||||
{
|
{
|
||||||
|
config_data_t *cd;
|
||||||
|
|
||||||
UNUSED(driverarg);
|
UNUSED(driverarg);
|
||||||
UNUSED(dbdata);
|
|
||||||
UNUSED(name);
|
|
||||||
UNUSED(client);
|
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
|
static isc_result_t
|
||||||
|
Reference in New Issue
Block a user