2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

deal with the default view

This commit is contained in:
Andreas Gustafsson 2000-05-25 22:10:29 +00:00
parent c885fad9b8
commit 8c7eaac6bb
2 changed files with 20 additions and 16 deletions

View File

@ -144,6 +144,7 @@ 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;
if (confview != NULL) {
keylist = NULL; keylist = NULL;
result = dns_c_view_getkeydefs(confview, &keylist); result = dns_c_view_getkeydefs(confview, &keylist);
if (result == ISC_R_SUCCESS) if (result == ISC_R_SUCCESS)
@ -152,6 +153,7 @@ dns_tsigkeyring_fromconfig(dns_c_view_t *confview, dns_c_ctx_t *confctx,
result = ISC_R_SUCCESS; result = ISC_R_SUCCESS;
if (result != ISC_R_SUCCESS) if (result != ISC_R_SUCCESS)
goto failure; goto failure;
}
*ringp = ring; *ringp = ring;
return (ISC_R_SUCCESS); return (ISC_R_SUCCESS);

View File

@ -144,6 +144,7 @@ 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;
if (confview != NULL) {
keylist = NULL; keylist = NULL;
result = dns_c_view_getkeydefs(confview, &keylist); result = dns_c_view_getkeydefs(confview, &keylist);
if (result == ISC_R_SUCCESS) if (result == ISC_R_SUCCESS)
@ -152,6 +153,7 @@ dns_tsigkeyring_fromconfig(dns_c_view_t *confview, dns_c_ctx_t *confctx,
result = ISC_R_SUCCESS; result = ISC_R_SUCCESS;
if (result != ISC_R_SUCCESS) if (result != ISC_R_SUCCESS)
goto failure; goto failure;
}
*ringp = ring; *ringp = ring;
return (ISC_R_SUCCESS); return (ISC_R_SUCCESS);