diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-01-20 14:59:23 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-01-20 14:59:23 -0500 |
commit | 1471e577432273d51aa13919603a648437d05fea (patch) | |
tree | 12d5168d158c3a36a6e01e04a717f9a2aefdabf9 /src/or/policies.c | |
parent | c8f94eed12c0a7e8226bdadcd26570e29152f299 (diff) | |
parent | 43414eb98821d3b5c6c65181d7545ce938f82c8e (diff) | |
download | tor-1471e577432273d51aa13919603a648437d05fea.tar.gz tor-1471e577432273d51aa13919603a648437d05fea.zip |
Merge remote branch 'rransom/policy_summarize-assert' into maint-0.2.1
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 d4b4a07c56..0a8fd7328e 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -1209,8 +1209,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"; |