Blame SOURCES/unbound-1.7.3-auth-callback.patch

a68357
--- a/services/authzone.c	2018-06-14 09:09:01.000000000 +0200
a68357
+++ b/services/authzone.c	2020-04-16 18:55:50.806693241 +0200
a68357
@@ -5139,7 +5139,7 @@
a68357
 	log_assert(xfr->task_transfer);
a68357
 	lock_basic_lock(&xfr->lock);
a68357
 	env = xfr->task_transfer->env;
a68357
-	if(env->outnet->want_to_quit) {
a68357
+	if(!env || env->outnet->want_to_quit) {
a68357
 		lock_basic_unlock(&xfr->lock);
a68357
 		return; /* stop on quit */
a68357
 	}
a68357
@@ -5558,7 +5558,7 @@
a68357
 	log_assert(xfr->task_transfer);
a68357
 	lock_basic_lock(&xfr->lock);
a68357
 	env = xfr->task_transfer->env;
a68357
-	if(env->outnet->want_to_quit) {
a68357
+	if(!env || env->outnet->want_to_quit) {
a68357
 		lock_basic_unlock(&xfr->lock);
a68357
 		return 0; /* stop on quit */
a68357
 	}
a68357
@@ -5619,7 +5619,7 @@
a68357
 	log_assert(xfr->task_transfer);
a68357
 	lock_basic_lock(&xfr->lock);
a68357
 	env = xfr->task_transfer->env;
a68357
-	if(env->outnet->want_to_quit) {
a68357
+	if(!env || env->outnet->want_to_quit) {
a68357
 		lock_basic_unlock(&xfr->lock);
a68357
 		return 0; /* stop on quit */
a68357
 	}
a68357
@@ -5798,7 +5798,7 @@
a68357
 	log_assert(xfr->task_probe);
a68357
 	lock_basic_lock(&xfr->lock);
a68357
 	env = xfr->task_probe->env;
a68357
-	if(env->outnet->want_to_quit) {
a68357
+	if(!env || env->outnet->want_to_quit) {
a68357
 		lock_basic_unlock(&xfr->lock);
a68357
 		return; /* stop on quit */
a68357
 	}
a68357
@@ -5829,7 +5829,7 @@
a68357
 	log_assert(xfr->task_probe);
a68357
 	lock_basic_lock(&xfr->lock);
a68357
 	env = xfr->task_probe->env;
a68357
-	if(env->outnet->want_to_quit) {
a68357
+	if(!env || env->outnet->want_to_quit) {
a68357
 		lock_basic_unlock(&xfr->lock);
a68357
 		return 0; /* stop on quit */
a68357
 	}
a68357
@@ -6030,7 +6030,7 @@
a68357
 	log_assert(xfr->task_probe);
a68357
 	lock_basic_lock(&xfr->lock);
a68357
 	env = xfr->task_probe->env;
a68357
-	if(env->outnet->want_to_quit) {
a68357
+	if(!env || env->outnet->want_to_quit) {
a68357
 		lock_basic_unlock(&xfr->lock);
a68357
 		return; /* stop on quit */
a68357
 	}
a68357
@@ -6089,7 +6089,7 @@
a68357
 	log_assert(xfr->task_nextprobe);
a68357
 	lock_basic_lock(&xfr->lock);
a68357
 	env = xfr->task_nextprobe->env;
a68357
-	if(env->outnet->want_to_quit) {
a68357
+	if(!env || env->outnet->want_to_quit) {
a68357
 		lock_basic_unlock(&xfr->lock);
a68357
 		return; /* stop on quit */
a68357
 	}