From: Mark Andrews Date: Fri, 23 Jun 2017 07:17:28 +0000 (+1000) Subject: 4640. [bug] If query_findversion failed in query_getdb due to X-Git-Tag: v9.12.0a1~239 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=b551ee14bd12fff52aa05f7f94cd4e17cea52be3;p=thirdparty%2Fbind9.git 4640. [bug] If query_findversion failed in query_getdb due to memory failure the error status was incorrectly discarded. [RT #45331] --- diff --git a/CHANGES b/CHANGES index 3e2037ec48a..05bb42f998d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +4640. [bug] If query_findversion failed in query_getdb due to + memory failure the error status was incorrectly + discarded. [RT #45331] + 4639. [bug] Fix a regression in --with-tuning reporting introduced by change 4488. [RT #45396] diff --git a/bin/named/query.c b/bin/named/query.c index 39b99a2f8b7..49c5d4070be 100644 --- a/bin/named/query.c +++ b/bin/named/query.c @@ -1520,7 +1520,7 @@ query_getdb(ns_client_t *client, dns_name_t *name, dns_rdatatype_t qtype, dbversion = query_findversion(client, tdbp); if (dbversion == NULL) { - result = ISC_R_NOMEMORY; + tresult = ISC_R_NOMEMORY; } else { /* * Be sure to return our database.