]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/pdnsutil.cc
Merge pull request #13522 from rgacogne/coverity-auto-copy-move-2
[thirdparty/pdns.git] / pdns / pdnsutil.cc
index b3d75b77b45a26870bceaa08e22325559a09c560..4502f4c081200c72c1f9abec21e4c527246d6249 100644 (file)
@@ -677,7 +677,7 @@ static int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, con
       }
     }
 
-    auto trueTarget = target.isRoot() ? name : target;
+    const auto& trueTarget = target.isRoot() ? name : target;
     if (prio > 0) {
       if(v4hintsAuto && arecords.find(trueTarget) == arecords.end()) {
         cout << "[warning] SVCB record for "<< name << " has automatic IPv4 hints, but no A-record for the target at "<< trueTarget <<" exists."<<endl;