Pārlūkot izejas kodu

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
Nick Mathewson 15 gadi atpakaļ
vecāks
revīzija
6e4afe6f13
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/or/eventdns.c

+ 1 - 1
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 */