Commit d4561eb3 authored by Mark Andrews's avatar Mark Andrews

only test when there is a ssutable

parent 9f19367f
......@@ -2766,7 +2766,7 @@ update_action(isc_task_t *task, isc_event_t *event) {
dns_ttl_t ttl;
dns_rdataclass_t update_class;
INSIST(rule < ruleslen);
INSIST(ssutable == NULL || rule < ruleslen);
get_current_rr(request, DNS_SECTION_UPDATE, zoneclass, &name,
&rdata, &covers, &ttl, &update_class);
......@@ -2884,7 +2884,7 @@ update_action(isc_task_t *task, isc_event_t *event) {
dns_rdataclass_t update_class;
bool flag;
INSIST(rule < ruleslen);
INSIST(ssutable == NULL || rule < ruleslen);
get_current_rr(request, DNS_SECTION_UPDATE, zoneclass, &name,
&rdata, &covers, &ttl, &update_class);
......@@ -2894,7 +2894,7 @@ update_action(isc_task_t *task, isc_event_t *event) {
* There must be no records at the name except the
* the record to be added.
*/
if (IS_ADD_NEW(rules[rule])) {
if (ssutable != NULL && IS_ADD_NEW(rules[rule])) {
result = foreach_rr(db, ver, name, rdata.type,
covers, rrset_exists_action,
NULL);
......
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