]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
It's amazing how wrong things look when you invert the booleans on your
authorNick Mathewson <nickm@torproject.org>
Mon, 5 Apr 2004 20:34:58 +0000 (20:34 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 Apr 2004 20:34:58 +0000 (20:34 +0000)
sanity checks.

svn:r1487

src/or/rendservice.c

index 5bf944690b454543b31266f857eadb7d708f08d0..b4898a3f5022d62f4030aa5e05154323f886ba38 100644 (file)
@@ -341,7 +341,7 @@ rend_service_introduce(circuit_t *circuit, const char *request, int request_len)
            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);