diff options
author | Sebastian Geerken <devnull@localhost> | 2012-11-27 16:05:54 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2012-11-27 16:05:54 +0100 |
commit | 6526b42cefc35149af20d645f15e8bb76b0db0e2 (patch) | |
tree | cc4b9874540709435da9657501eae1db77038d99 /src/domain.c | |
parent | 1250d68c8767232849145d9e6abe681a562f6f5d (diff) | |
parent | c58af8aa171908de5e0e069754803235f8ea70f8 (diff) |
Merge.
Diffstat (limited to 'src/domain.c')
-rw-r--r-- | src/domain.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/domain.c b/src/domain.c index af8c8075..90d6b414 100644 --- a/src/domain.c +++ b/src/domain.c @@ -132,17 +132,17 @@ bool_t a_Domain_permit(const DilloUrl *source, const DilloUrl *dest) if (a_Url_same_organization(source, dest)) return TRUE; + ret = default_deny ? FALSE : TRUE; + for (i = 0; i < num_exceptions; i++) { - if(Domain_match(source_host, exceptions[i].origin) && - Domain_match(dest_host, exceptions[i].destination)) { + if (Domain_match(source_host, exceptions[i].origin) && + Domain_match(dest_host, exceptions[i].destination)) { ret = default_deny; MSG("Domain: Matched rule from %s to %s.\n", exceptions[i].origin, exceptions[i].destination); break; } } - if (i == num_exceptions) - ret = default_deny ? FALSE : TRUE; MSG("Domain: %s from %s to %s.\n", (ret == TRUE ? "permitted" : "DENIED"), source_host, dest_host); |