summaryrefslogtreecommitdiff
path: root/src/or/rendmid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/rendmid.c')
-rw-r--r--src/or/rendmid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendmid.c b/src/or/rendmid.c
index 2b28aabf44..fdd70bdc45 100644
--- a/src/or/rendmid.c
+++ b/src/or/rendmid.c
@@ -50,7 +50,7 @@ rend_mid_establish_intro(circuit_t *circ, const char *request, size_t request_le
memcpy(buf, circ->handshake_digest, DIGEST_LEN);
memcpy(buf+DIGEST_LEN, "INTRODUCE", 9);
if (crypto_digest(expected_digest, buf, DIGEST_LEN+9) < 0) {
- warn(LD_GENERAL, "Internal error computing digest.");
+ warn(LD_BUG, "Internal error computing digest.");
goto err;
}
if (memcmp(expected_digest, request+2+asn1len, DIGEST_LEN)) {
@@ -67,7 +67,7 @@ rend_mid_establish_intro(circuit_t *circ, const char *request, size_t request_le
/* The request is valid. First, compute the hash of Bob's PK.*/
if (crypto_pk_get_digest(pk, pk_digest)<0) {
- warn(LD_GENERAL, "Internal error: couldn't hash public key.");
+ warn(LD_BUG, "Internal error: couldn't hash public key.");
goto err;
}