]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
I worry that the CLEAR() macro in eventdns.c is hiding bugs. That is sad, because...
authorNick Mathewson <nickm@torproject.org>
Wed, 11 Feb 2009 17:22:34 +0000 (17:22 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 11 Feb 2009 17:22:34 +0000 (17:22 +0000)
svn:r18493

src/or/eventdns.c

index 56e2855e5c239989e90c9b1a5b89c7d8bc6da9eb..5638d2d4a69c5f3936783f4991021ff0e26ecb4c 100644 (file)
@@ -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 */