diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-01-20 15:00:24 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-01-20 15:00:24 -0500 |
commit | 13e9a2b19d4a65d9761256ac72f754c35c371b0b (patch) | |
tree | 14b01dda5509908cb38f81759ead07e71190c4df /src/or/policies.c | |
parent | a793f1f6f2bd7b774e3b001468df4ea72bdeffc4 (diff) | |
parent | 1471e577432273d51aa13919603a648437d05fea (diff) | |
download | tor-13e9a2b19d4a65d9761256ac72f754c35c371b0b.tar.gz tor-13e9a2b19d4a65d9761256ac72f754c35c371b0b.zip |
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
Diffstat (limited to 'src/or/policies.c')
-rw-r--r-- | src/or/policies.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/policies.c b/src/or/policies.c index 6947222b2e..62e048cfc2 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -1243,8 +1243,8 @@ policy_summarize(smartlist_t *policy) accepts_str = smartlist_join_strings(accepts, ",", 0, &accepts_len); rejects_str = smartlist_join_strings(rejects, ",", 0, &rejects_len); - if (rejects_len > MAX_EXITPOLICY_SUMMARY_LEN && - accepts_len > MAX_EXITPOLICY_SUMMARY_LEN) { + if (rejects_len > MAX_EXITPOLICY_SUMMARY_LEN-strlen("reject")-1 && + accepts_len > MAX_EXITPOLICY_SUMMARY_LEN-strlen("accept")-1) { char *c; shorter_str = accepts_str; prefix = "accept"; |