diff src/context.cpp @ 100:63e8633abc34 stable-5-8

allow empty env_to at global context to remove all restrictions on child contexts
author carl
date Sun, 25 Sep 2005 08:38:29 -0700
parents f8963ddf7143
children 6ac7ba4a8312
line wrap: on
line diff
--- a/src/context.cpp	Fri Sep 23 07:58:34 2005 -0700
+++ b/src/context.cpp	Sun Sep 25 08:38:29 2005 -0700
@@ -519,6 +519,7 @@
 	if (x) x++;
 	else   x = to;
 	if (*x == '\0') return true;    // always allow covering addresses with no domain name, eg abuse@
+	if (!parent && env_to.empty()) return true; // empty env_to at global level covers everything
 	string_set::iterator i = env_to.find(x);
 	if (i != env_to.end()) return true;
 	return false;