Commit 4efe32b8 authored by Mark Andrews's avatar Mark Andrews
Browse files

1521. [bug] dns_view_createresolver() failed to check the

                        result from isc_mem_create(). [RT# 9294]
parent ea72ae09
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
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment