diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index d552cd9d02d37..5792940c926ce 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1,4 +1,3 @@ -#include #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -914,10 +913,11 @@ static int increaseSerial(const DNSName& zone, DNSSECKeeper &dk) sd.db->startTransaction(zone, -1); - if (!sd.db->replaceRRSet(sd.domain_id, zone, rr.qtype, {rr})) { - sd.db->abortTransaction(); - cerr << "Backend did not replace SOA record. Backend might not support this operation." << '\n'; - return -1; + vector rrs; + if (!sd.db->replaceRRSet(sd.domain_id, zone, rr.qtype, rrs)) { + sd.db->abortTransaction(); + cerr << "Backend did not replace SOA record. Backend might not support this operation." << '\n'; + return -1; } if (sd.db->doesDNSSEC()) {