]> granicus.if.org Git - pdns/commitdiff
Only support it for v3 and above
authorAki Tuomi <cmouse@desteem.org>
Sun, 27 Apr 2014 14:08:19 +0000 (17:08 +0300)
committerAki Tuomi <cmouse@desteem.org>
Tue, 27 May 2014 10:30:16 +0000 (13:30 +0300)
modules/pipebackend/pipebackend.cc

index 44ec2766884d74d21da8f259eaa78b0a067339e0..66094eb1fa6a386cafbc1c39985361cb7b546702 100644 (file)
@@ -154,8 +154,10 @@ bool PipeBackend::list(const string &target, int inZoneId, bool include_disabled
 // The question format:
 
 // type    qname           qclass  qtype   id      ip-address
-
-      query<<"AXFR\t"<<inZoneId<<"\t"<<target;
+      if (abiVersion >= 3)
+        query<<"AXFR\t"<<inZoneId<<"\t"<<target;
+      else
+        query<<"AXFR\t"<<inZoneId<;
 
       d_coproc->send(query.str());
    }