]> granicus.if.org Git - pdns/commitdiff
Fix abiVersion checks to facilitate new versions (thanks @rhomber)
authorAki Tuomi <cmouse@desteem.org>
Tue, 27 May 2014 10:31:01 +0000 (13:31 +0300)
committerAki Tuomi <cmouse@desteem.org>
Tue, 27 May 2014 10:31:01 +0000 (13:31 +0300)
modules/pipebackend/pipebackend.cc

index a5f5c493dd0be82ded90c8dbea2691daba820aed..8fcc8a864a307dbd8dab9761819f9898303ecf9c 100644 (file)
@@ -197,7 +197,7 @@ bool PipeBackend::get(DNSResourceRecord &r)
    // The answer format:
    // DATA    qname           qclass  qtype   ttl     id      content 
    unsigned int extraFields = 0;
-   if(d_abiVersion == 3)
+   if(d_abiVersion >= 3)
      extraFields = 2;
      
    for(;;) {
@@ -225,7 +225,7 @@ bool PipeBackend::get(DNSResourceRecord &r)
             // now what?
          }
          
-         if(d_abiVersion == 3) {
+         if(d_abiVersion >= 3) {
            r.scopeMask = atoi(parts[1].c_str());
            r.auth = atoi(parts[2].c_str());
          } else {