mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
refactor dns_clientinfo_init(); use separate function to set ECS
Instead of using an extra rarely-used paramater to dns_clientinfo_init() to set ECS information for a client, this commit adds a function dns_clientinfo_setecs() which can be called only when ECS is needed.
This commit is contained in:
@@ -599,7 +599,7 @@ foreach_rrset(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
|
||||
* different from the current version
|
||||
*/
|
||||
dns_db_currentversion(db, &oldver);
|
||||
dns_clientinfo_init(&ci, NULL, NULL, (ver != oldver) ? ver : NULL);
|
||||
dns_clientinfo_init(&ci, NULL, (ver != oldver) ? ver : NULL);
|
||||
dns_db_closeversion(db, &oldver, false);
|
||||
|
||||
node = NULL;
|
||||
@@ -690,7 +690,7 @@ foreach_rr(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
|
||||
* different from the current version
|
||||
*/
|
||||
dns_db_currentversion(db, &oldver);
|
||||
dns_clientinfo_init(&ci, NULL, NULL, (ver != oldver) ? ver : NULL);
|
||||
dns_clientinfo_init(&ci, NULL, (ver != oldver) ? ver : NULL);
|
||||
dns_db_closeversion(db, &oldver, false);
|
||||
|
||||
if (type == dns_rdatatype_any) {
|
||||
|
Reference in New Issue
Block a user