mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
allow dlz to signal that the view's transfer acl should be used
This commit is contained in:
@@ -1610,17 +1610,23 @@ dns_sdlzallowzonexfr(void *driverarg, void *dbdata, isc_mem_t *mctx,
|
||||
|
||||
/* Call SDLZ driver's find zone method */
|
||||
if (imp->methods->allowzonexfr != NULL) {
|
||||
isc_result_t rresult = ISC_R_SUCCESS;
|
||||
|
||||
MAYBE_LOCK(imp);
|
||||
result = imp->methods->allowzonexfr(imp->driverarg, dbdata,
|
||||
namestr, clientstr);
|
||||
MAYBE_UNLOCK(imp);
|
||||
/*
|
||||
* if zone is supported and transfers allowed build a 'bind'
|
||||
* database driver
|
||||
* if zone is supported and transfers are (or might be)
|
||||
* allowed, build a 'bind' database driver
|
||||
*/
|
||||
if (result == ISC_R_SUCCESS)
|
||||
result = dns_sdlzcreateDBP(mctx, driverarg, dbdata,
|
||||
name, rdclass, dbp);
|
||||
if (result == ISC_R_SUCCESS || result == ISC_R_DEFAULT) {
|
||||
rresult = dns_sdlzcreateDBP(mctx, driverarg, dbdata,
|
||||
name, rdclass, dbp);
|
||||
}
|
||||
if (rresult != ISC_R_SUCCESS) {
|
||||
result = rresult;
|
||||
}
|
||||
return (result);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user