diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-02-11 17:22:34 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-02-11 17:22:34 +0000 |
commit | 6e4afe6f13b827b539b73e7e3126c6e36b877dd5 (patch) | |
tree | e816a1471a4a485a172ad13c9bcfbd0babf12347 /src | |
parent | 8d9aadf57c5a41a4a1b918e30c294f41c9c39026 (diff) | |
download | tor-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.c | 2 |
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 */ |