Commit 9e6b3944 authored by Mark Andrews's avatar Mark Andrews
Browse files

use RESTORE rather than SAVE as is better describes the operation

parent eed2f6ce
......@@ -2687,13 +2687,11 @@ rpz_rrset_find(ns_client_t *client, dns_name_t *name, dns_rdatatype_t type,
INSIST(dns_name_equal(name, st->r_name));
INSIST(*rdatasetp == NULL ||
!dns_rdataset_isassociated(*rdatasetp));
INSIST(*dbp == NULL);
st->state &= ~DNS_RPZ_RECURSING;
*dbp = st->r.db;
st->r.db = NULL;
RESTORE(*dbp, st->r.db);
if (*rdatasetp != NULL)
query_putrdataset(client, rdatasetp);
SAVE(*rdatasetp, st->r.r_rdataset);
RESTORE(*rdatasetp, st->r.r_rdataset);
result = st->r.r_result;
if (result == DNS_R_DELEGATION) {
CTRACE(ISC_LOG_ERROR, "RPZ recursing");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment