From: Aki Tuomi Date: Tue, 27 May 2014 10:31:01 +0000 (+0300) Subject: Fix abiVersion checks to facilitate new versions (thanks @rhomber) X-Git-Tag: rec-3.6.0~19^2~10^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d29e264eae8f7e9ba54460a94931362cf153a17e;p=thirdparty%2Fpdns.git Fix abiVersion checks to facilitate new versions (thanks @rhomber) --- diff --git a/modules/pipebackend/pipebackend.cc b/modules/pipebackend/pipebackend.cc index a5f5c493dd..8fcc8a864a 100644 --- a/modules/pipebackend/pipebackend.cc +++ b/modules/pipebackend/pipebackend.cc @@ -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 {