summaryrefslogtreecommitdiff
path: root/src/or/policies.c
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-08-14 12:37:50 +0000
committerPeter Palfrader <peter@palfrader.org>2008-08-14 12:37:50 +0000
commitff32708d0e6e031d3b634a88abee03680ed61dcc (patch)
tree84a7d3e1fb3d72ba66c7a67dec013a7bfe9e1ea1 /src/or/policies.c
parent2f91a3528a704c1c1782d3dfce36e3ad865e7117 (diff)
downloadtor-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/policies.c')
-rw-r--r--src/or/policies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index cdc4e28b6d..a5f8a28460 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -1139,7 +1139,7 @@ policy_summarize(smartlist_t *policy)
* that to build the result
*/
if (smartlist_len(accepts) == 0) { /* no exits at all */
- result = NULL;
+ result = tor_strdup("reject 1-65535");
goto cleanup;
}
if (smartlist_len(rejects) == 0) { /* no rejects at all */