Skip to content

Commit

Permalink
Merge pull request #13617 from fredmorcos/fix-non-zero-offset-ptr
Browse files Browse the repository at this point in the history
Fix warning about pointer with non-zero offset being freed
  • Loading branch information
rgacogne committed Dec 21, 2023
2 parents f779843 + 1c2fb43 commit d0b6842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdns/pdnsutil.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include <boost/smart_ptr/make_shared_array.hpp>
#ifdef HAVE_CONFIG_H
#include "config.h"
Expand All @@ -12,6 +11,7 @@
#include "statbag.hh"
#include "base32.hh"
#include "base64.hh"
#include "dns.hh"

#include <boost/program_options.hpp>
#include <boost/assign/std/vector.hpp>
Expand Down Expand Up @@ -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<DNSResourceRecord>(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."<<endl;
return -1;
Expand Down

0 comments on commit d0b6842

Please sign in to comment.