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:
parent
3485fe4b86
commit
402190df18
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user