diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-08-14 12:37:50 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2008-08-14 12:37:50 +0000 |
commit | ff32708d0e6e031d3b634a88abee03680ed61dcc (patch) | |
tree | 84a7d3e1fb3d72ba66c7a67dec013a7bfe9e1ea1 /src/or/dirserv.c | |
parent | 2f91a3528a704c1c1782d3dfce36e3ad865e7117 (diff) | |
download | tor-ff32708d0e6e031d3b634a88abee03680ed61dcc.tar.gz tor-ff32708d0e6e031d3b634a88abee03680ed61dcc.zip |
Having a reject-all policy summarized with a lack of summary is stupid. Explicitly mention them as reject 1-65535.
svn:r16543
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 75e9d0324e..5454b6d45c 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1974,15 +1974,13 @@ routerstatus_format_entry(char *buf, size_t buf_len, cp += strlen(cp); summary = policy_summarize(desc->exit_policy); - if (summary) { - r = tor_snprintf(cp, buf_len - (cp-buf), "p %s\n", summary); - if (r<0) { - log_warn(LD_BUG, "Not enough space in buffer."); - return -1; - } - cp += strlen(cp); - tor_free(summary); + r = tor_snprintf(cp, buf_len - (cp-buf), "p %s\n", summary); + if (r<0) { + log_warn(LD_BUG, "Not enough space in buffer."); + return -1; } + cp += strlen(cp); + tor_free(summary); } return 0; |