diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-06-03 21:41:14 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-06-03 21:41:14 +0000 |
commit | c660a0f6a2875a8b9b612f28a7f752b3ca8eb5da (patch) | |
tree | 019d62051717340d6b63af87f512120f2f154b85 /src/common/compat.c | |
parent | 85a25c8a29e6d612ff33b75464363a51eea42e7b (diff) | |
download | tor-c660a0f6a2875a8b9b612f28a7f752b3ca8eb5da.tar.gz tor-c660a0f6a2875a8b9b612f28a7f752b3ca8eb5da.zip |
More DNS fixes. Send meaningful TTLs back to the client when
possible. Cache at the server side independently from the TTL, to
prevent attackers from probing the server to see who has been asking
for what hostnames. (Hi, Dan Kaminski!)
Also, clean some whitespace.
svn:r6526
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index c3e42dbc20..7867c0b894 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -131,7 +131,7 @@ tor_mmap_file(const char *filename, size_t *size) *size += (page_size + (page_size-(*size%page_size))); string = mmap(0, *size, PROT_READ, MAP_PRIVATE, fd, 0); - if(string == MAP_FAILED) { + if (string == MAP_FAILED) { log_warn(LD_FS,"Could not mmap file \"%s\": %s", filename, strerror(errno)); return NULL; |