]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1521. [bug] dns_view_createresolver() failed to check the
authorMark Andrews <marka@isc.org>
Fri, 3 Oct 2003 02:19:31 +0000 (02:19 +0000)
committerMark Andrews <marka@isc.org>
Fri, 3 Oct 2003 02:19:31 +0000 (02:19 +0000)
                        result from isc_mem_create(). [RT# 9294]

CHANGES
lib/dns/view.c

diff --git a/CHANGES b/CHANGES
index 79d871f08dcff4e979630483201dbbe517af5734..57ed54e9f3afe5cdc1edaaad6dea9210b2420074 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+1521.  [bug]           dns_view_createresolver() failed to check the
+                       result from isc_mem_create(). [RT# 9294]
+
 1520.  [protocol]      Add SSHFP (SSH Finger Print) type.
 
 1519.  [bug]           dnssec-signzone:nsec_setbit() computed the wrong
index 16db471416a5d8305ab289400190ce7d3813aa2a..11e61bfcabaa1aee3edd129d9aea1b9e471cce37 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: view.c,v 1.122 2003/09/30 05:56:14 marka Exp $ */
+/* $Id: view.c,v 1.123 2003/10/03 02:19:31 marka Exp $ */
 
 #include <config.h>
 
@@ -542,7 +542,12 @@ dns_view_createresolver(dns_view_t *view,
        dns_resolver_whenshutdown(view->resolver, view->task, &event);
        view->attributes &= ~DNS_VIEWATTR_RESSHUTDOWN;
 
-       isc_mem_create(0, 0, &mctx);
+       result = isc_mem_create(0, 0, &mctx);
+       if (result != ISC_R_SUCCESS) {
+               dns_resolver_shutdown(view->resolver);
+               return (result);
+       }
+
        result = dns_adb_create(mctx, view, timermgr, taskmgr, &view->adb);
        isc_mem_detach(&mctx);
        if (result != ISC_R_SUCCESS) {