浏览代码

Slightly more helpful msg on mismatched service pk digest in INTRODUCE2 cell

svn:r1486
Nick Mathewson 21 年之前
父节点
当前提交
7b1939db2d
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/or/rendservice.c

+ 3 - 1
src/or/rendservice.c

@@ -342,7 +342,9 @@ rend_service_introduce(circuit_t *circuit, const char *request, int request_len)
     return -1;
   }
   if (!memcmp(circuit->rend_pk_digest, request, 20)) {
-    log_fn(LOG_WARN, "Got an INTRODUCE2 cell for the wrong service");
+    hex_encode(request, 4, hexid);
+    log_fn(LOG_WARN, "Got an INTRODUCE2 cell for the wrong service (%s)",
+           hexid);
     return -1;
   }