aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-02-11 17:22:34 +0000
committerNick Mathewson <nickm@torproject.org>2009-02-11 17:22:34 +0000
commit6e4afe6f13b827b539b73e7e3126c6e36b877dd5 (patch)
treee816a1471a4a485a172ad13c9bcfbd0babf12347 /src
parent8d9aadf57c5a41a4a1b918e30c294f41c9c39026 (diff)
downloadtor-6e4afe6f13b827b539b73e7e3126c6e36b877dd5.tar.gz
tor-6e4afe6f13b827b539b73e7e3126c6e36b877dd5.zip
I worry that the CLEAR() macro in eventdns.c is hiding bugs. That is sad, because it was meant to make them more detectable. Change it to change stuff to garbage rather than to 0. If no bugs turn up, we can remove it in 0.2.2.x
svn:r18493
Diffstat (limited to 'src')
-rw-r--r--src/or/eventdns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c
index 56e2855e5c..5638d2d4a6 100644
--- a/src/or/eventdns.c
+++ b/src/or/eventdns.c
@@ -152,7 +152,7 @@ typedef unsigned int uint;
#define CLASS_INET EVDNS_CLASS_INET
-#define CLEAR(x) do { memset((x), 0, sizeof(*(x))); } while(0)
+#define CLEAR(x) do { memset((x), 0xF0, sizeof(*(x))); } while(0)
struct evdns_request {
u8 *request; /* the dns packet data */