From d29e264eae8f7e9ba54460a94931362cf153a17e Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 27 May 2014 13:31:01 +0300 Subject: [PATCH] Fix abiVersion checks to facilitate new versions (thanks @rhomber) --- modules/pipebackend/pipebackend.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.47.2