mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
deal with the default view
This commit is contained in:
@@ -144,14 +144,16 @@ dns_tsigkeyring_fromconfig(dns_c_view_t *confview, dns_c_ctx_t *confctx,
|
|||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
goto failure;
|
goto failure;
|
||||||
|
|
||||||
keylist = NULL;
|
if (confview != NULL) {
|
||||||
result = dns_c_view_getkeydefs(confview, &keylist);
|
keylist = NULL;
|
||||||
if (result == ISC_R_SUCCESS)
|
result = dns_c_view_getkeydefs(confview, &keylist);
|
||||||
result = add_initial_keys(keylist, ring, mctx);
|
if (result == ISC_R_SUCCESS)
|
||||||
else if (result == ISC_R_NOTFOUND)
|
result = add_initial_keys(keylist, ring, mctx);
|
||||||
result = ISC_R_SUCCESS;
|
else if (result == ISC_R_NOTFOUND)
|
||||||
if (result != ISC_R_SUCCESS)
|
result = ISC_R_SUCCESS;
|
||||||
goto failure;
|
if (result != ISC_R_SUCCESS)
|
||||||
|
goto failure;
|
||||||
|
}
|
||||||
|
|
||||||
*ringp = ring;
|
*ringp = ring;
|
||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
|
@@ -144,14 +144,16 @@ dns_tsigkeyring_fromconfig(dns_c_view_t *confview, dns_c_ctx_t *confctx,
|
|||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
goto failure;
|
goto failure;
|
||||||
|
|
||||||
keylist = NULL;
|
if (confview != NULL) {
|
||||||
result = dns_c_view_getkeydefs(confview, &keylist);
|
keylist = NULL;
|
||||||
if (result == ISC_R_SUCCESS)
|
result = dns_c_view_getkeydefs(confview, &keylist);
|
||||||
result = add_initial_keys(keylist, ring, mctx);
|
if (result == ISC_R_SUCCESS)
|
||||||
else if (result == ISC_R_NOTFOUND)
|
result = add_initial_keys(keylist, ring, mctx);
|
||||||
result = ISC_R_SUCCESS;
|
else if (result == ISC_R_NOTFOUND)
|
||||||
if (result != ISC_R_SUCCESS)
|
result = ISC_R_SUCCESS;
|
||||||
goto failure;
|
if (result != ISC_R_SUCCESS)
|
||||||
|
goto failure;
|
||||||
|
}
|
||||||
|
|
||||||
*ringp = ring;
|
*ringp = ring;
|
||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
|
Reference in New Issue
Block a user