diff options
author | corvid <corvid@lavabit.com> | 2012-11-26 07:50:34 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2012-11-26 07:50:34 +0000 |
commit | 7830f229f724f74960b31c4089caf2838ee7fc77 (patch) | |
tree | 3cfe55a44b462d638a7476ae6e1539aca16d77eb /src/domain.c | |
parent | f3c24d171e0fe0acd2c37f1ee7797ca16aada020 (diff) |
rm compiler warning
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); |