rpz_ver = rpzs->rpz_ver;
RWUNLOCK(&rpzs->search_lock, isc_rwlocktype_read);
+#ifndef USE_DNSRPS
+ INSIST(!popt.dnsrps_enabled);
+#endif
+
if (st == NULL) {
st = isc_mem_get(client->mctx, sizeof(*st));
if (st == NULL)
st->popt = popt;
st->rpz_ver = rpz_ver;
client->query.rpz_st = st;
- if (popt.dnsrps_enabled) {
#ifdef USE_DNSRPS
+ if (popt.dnsrps_enabled) {
if (st->rpsdb != NULL) {
dns_db_detach(&st->rpsdb);
}
st->m.policy = DNS_RPZ_POLICY_ERROR;
return (ISC_R_SUCCESS);
}
-#else
- INSIST(0);
-#endif
}
+#endif
}
/*