diff options
author | Roger Dingledine <arma@torproject.org> | 2005-01-21 03:18:49 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-01-21 03:18:49 +0000 |
commit | 4826718eace5bd8a0744ae5f1612920acf861624 (patch) | |
tree | 1f5b2bd841f8f7f4cf29988a27579e04bbcaad7f /src/or/directory.c | |
parent | b137f6d19fdc35a838f1557d2732369dd443c1cb (diff) | |
download | tor-4826718eace5bd8a0744ae5f1612920acf861624.tar.gz tor-4826718eace5bd8a0744ae5f1612920acf861624.zip |
special case so we don't yell when an empty http body doesn't specify a
content-encoding
svn:r3397
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index ee50f46e77..e9255747e3 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -555,6 +555,8 @@ static int body_is_plausible(const char *body, size_t len, int purpose) { int i; + if (len == 0) + return 1; /* empty bodies don't need decompression */ if (len < 32) return 0; if (purpose != DIR_PURPOSE_FETCH_RENDDESC) { |