return ISC_R_NOTFOUND when name does not match the zone name

(cherry picked from commit 402190df18)
This commit is contained in:
Mark Andrews
2019-01-07 15:21:31 +11:00
parent cce1d1d5f5
commit 299761127a
+9 -3
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