From 6e4afe6f13b827b539b73e7e3126c6e36b877dd5 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 11 Feb 2009 17:22:34 +0000 Subject: 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 --- src/or/eventdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/eventdns.c') 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 */ -- cgit v1.2.3-54-g00ecf