aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-06-03 21:41:14 +0000
committerNick Mathewson <nickm@torproject.org>2006-06-03 21:41:14 +0000
commitc660a0f6a2875a8b9b612f28a7f752b3ca8eb5da (patch)
tree019d62051717340d6b63af87f512120f2f154b85 /src/common
parent85a25c8a29e6d612ff33b75464363a51eea42e7b (diff)
downloadtor-c660a0f6a2875a8b9b612f28a7f752b3ca8eb5da.tar
tor-c660a0f6a2875a8b9b612f28a7f752b3ca8eb5da.tar.gz
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')
-rw-r--r--src/common/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index c3e42dbc2..7867c0b89 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;