Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 306527 Details for
Bug 409529
net-dns/bind-9.9.0 crashed while while rndc reload
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Work around the crash.
bind-9.9.0-nocrash.patch (text/plain), 1.12 KB, created by
Drunkard Zhang
on 2012-03-24 12:04:14 UTC
(
hide
)
Description:
Work around the crash.
Filename:
MIME Type:
Creator:
Drunkard Zhang
Created:
2012-03-24 12:04:14 UTC
Size:
1.12 KB
patch
obsolete
>diff --git a/bin/named/server.c b/bin/named/server.c >index 7c791f7..b4e6036 100644 >--- a/bin/named/server.c >+++ b/bin/named/server.c >@@ -5273,17 +5273,28 @@ load_zones(ns_server_t *server) { > view != NULL; > view = ISC_LIST_NEXT(view, link)) > { >- if (view->managed_keys != NULL) >- CHECK(dns_zone_load(view->managed_keys)); >- if (view->redirect != NULL) >- CHECK(dns_zone_load(view->redirect)); >+ if (view->managed_keys != NULL) { >+ result = dns_zone_load(view->managed_keys); >+ if (result != ISC_R_SUCCESS && result != DNS_R_UPTODATE) >+ goto cleanup; >+ } >+ if (view->redirect != NULL) { >+ result = dns_zone_load(view->redirect); >+ if (result != ISC_R_SUCCESS && result != DNS_R_UPTODATE) >+ goto cleanup; >+ } >+ >+ /* >+ * 'dns_view_asyncload' calls view_loaded if there are no >+ * zones. >+ */ > isc_refcount_increment(&zl->refs, NULL); > CHECK(dns_view_asyncload(view, view_loaded, zl)); > } > > cleanup: > isc_refcount_decrement(&zl->refs, &refs); >- if (result != ISC_R_SUCCESS || refs == 0) { >+ if (refs == 0) { > isc_refcount_destroy(&zl->refs); > isc_mem_put(server->mctx, zl, sizeof (*zl)); > } else {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 409529
: 306527