2818. [cleanup] rndc could return an incorrect error code

when a zone was not found. [RT #20767]
This commit is contained in:
Evan Hunt
2009-12-24 00:17:47 +00:00
parent b8f874d1b3
commit c7a3571cf6
2 changed files with 6 additions and 1 deletions
+3
View File
@@ -1,3 +1,6 @@
2818. [cleanup] rndc could return an incorrect error code
when a zone was not found. [RT #20767]
2815. [bug] Exclusively lock the task when freezing a zone.
[RT #19838]
+3 -1
View File
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.c,v 1.520.12.10 2009/12/23 23:34:16 each Exp $ */
/* $Id: server.c,v 1.520.12.11 2009/12/24 00:17:47 each Exp $ */
/*! \file */
@@ -4337,6 +4337,8 @@ zone_from_args(ns_server_t *server, char *args, dns_zone_t **zonep) {
/* Partial match? */
if (result != ISC_R_SUCCESS && *zonep != NULL)
dns_zone_detach(zonep);
if (result == DNS_R_PARTIALMATCH)
result = ISC_R_NOTFOUND;
fail1:
return (result);
}