[or-cvs] It"s amazing how wrong things look when you invert the bool...

Nick Mathewson nickm at seul.org
Mon Apr 5 20:35:00 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv20558/src/or

Modified Files:
	rendservice.c 
Log Message:
It's amazing how wrong things look when you invert the booleans on your
sanity checks.


Index: rendservice.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendservice.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- rendservice.c	5 Apr 2004 20:33:29 -0000	1.24
+++ rendservice.c	5 Apr 2004 20:34:58 -0000	1.25
@@ -341,7 +341,7 @@
            hexid);
     return -1;
   }
-  if (!memcmp(circuit->rend_pk_digest, request, 20)) {
+  if (memcmp(circuit->rend_pk_digest, request, 20)) {
     hex_encode(request, 4, hexid);
     log_fn(LOG_WARN, "Got an INTRODUCE2 cell for the wrong service (%s)",
            hexid);



More information about the tor-commits mailing list