From: Fred Morcos Date: Wed, 13 Dec 2023 13:50:59 +0000 (+0100) Subject: Fix warning about pointer with non-zero offset being freed X-Git-Tag: auth-4.9.0-alpha1~27^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13617%2Fhead;p=thirdparty%2Fpdns.git Fix warning about pointer with non-zero offset being freed --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 4502f4c081..79f3476df4 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1,4 +1,3 @@ - #include #ifdef HAVE_CONFIG_H #include "config.h" @@ -12,6 +11,7 @@ #include "statbag.hh" #include "base32.hh" #include "base64.hh" +#include "dns.hh" #include #include @@ -925,7 +925,7 @@ static int increaseSerial(const DNSName& zone, DNSSECKeeper &dk) sd.db->startTransaction(zone, -1); - if (!sd.db->replaceRRSet(sd.domain_id, zone, rr.qtype, vector(1, rr))) { + 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."<