From 1c2fb43c093b42fa5c90856ad852f7d313e503f5 Mon Sep 17 00:00:00 2001 From: Fred Morcos Date: Wed, 13 Dec 2023 14:50:59 +0100 Subject: [PATCH] Fix warning about pointer with non-zero offset being freed --- pdns/pdnsutil.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."<