diff --git a/contrib/dlz/drivers/dlz_stub_driver.c b/contrib/dlz/drivers/dlz_stub_driver.c index 013431191a..5d7aab6d6a 100644 --- a/contrib/dlz/drivers/dlz_stub_driver.c +++ b/contrib/dlz/drivers/dlz_stub_driver.c @@ -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