]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1175. [bug] named-checkzone and named-checkconf failed to call
authorMark Andrews <marka@isc.org>
Mon, 14 Jan 2002 01:42:04 +0000 (01:42 +0000)
committerMark Andrews <marka@isc.org>
Mon, 14 Jan 2002 01:42:04 +0000 (01:42 +0000)
                        dns_result_register() at startup which could
                        result in runtime exceptions when printing
                        "out of memory" errors. [RT #2335]

CHANGES
bin/check/named-checkconf.c
bin/check/named-checkzone.c

diff --git a/CHANGES b/CHANGES
index f73304e09d3b6050b5bbe715bcf9036c9f0ef1e5..5e142a2b572448319a8df50e81fd8f40ca674bf6 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,8 @@
+1175.  [bug]           named-checkzone and named-checkconf failed to call
+                       dns_result_register() at startup which could
+                       result in runtime exceptions when printing
+                       "out of memory" errors. [RT #2335]
+
 1174.  [bug]           Win32: add WSAECONNRESET to the expected errors
                        from connect(). [RT #2308]
 
index 4652f29574bbba73eb4b09dacb2d373040b73af0..0b943bcbe44946d0135ce79aae7040db72257c39 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named-checkconf.c,v 1.20 2002/01/04 02:31:57 gson Exp $ */
+/* $Id: named-checkconf.c,v 1.21 2002/01/14 01:42:03 marka Exp $ */
 
 #include <config.h>
 
@@ -241,6 +241,8 @@ main(int argc, char **argv) {
 
        RUNTIME_CHECK(setup_logging(mctx, &logc) == ISC_R_SUCCESS);
 
+       dns_result_register();
+
        RUNTIME_CHECK(cfg_parser_create(mctx, logc, &parser) == ISC_R_SUCCESS);
 
        cfg_parser_setcallback(parser, directory_callback, NULL);
index 92025e641b70cff32a687f762a8b2fd7fade6da2..6c450f41b7972293d33a5eec6dee39c17735d623 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named-checkzone.c,v 1.18 2001/10/02 22:54:26 gson Exp $ */
+/* $Id: named-checkzone.c,v 1.19 2002/01/14 01:42:04 marka Exp $ */
 
 #include <config.h>
 
@@ -143,6 +143,8 @@ main(int argc, char **argv) {
                dns_log_setcontext(lctx);
        }
 
+       dns_result_register();
+
        origin = argv[isc_commandline_index++];
        filename = argv[isc_commandline_index++];
        result = load_zone(mctx, origin, filename, classname, &zone);