mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-20 21:58:03 -04:00
return ISC_R_NOTFOUND when name does not match the zone name
This commit is contained in:
parent
3485fe4b86
commit
402190df18
1 changed files with 9 additions and 3 deletions
|
|
@ -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…
Reference in a new issue