mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 04:40:00 -04:00
1521. [bug] dns_view_createresolver() failed to check the
result from isc_mem_create(). [RT# 9294]
This commit is contained in:
parent
ea72ae09ff
commit
4efe32b8bb
2 changed files with 10 additions and 2 deletions
3
CHANGES
3
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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue