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

svn:r1486
This commit is contained in:
Nick Mathewson 2004-04-05 20:33:29 +00:00
parent eafb8186e5
commit 7b1939db2d

View File

@ -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;
}