[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/maint-0.4.0] Change loglevel of message 'Hash of session info was not as expected'



commit 05fa1689eb96a1249030e1d51828a308d19d728c
Author: rl1987 <rl1987@xxxxxxxxxxxxxxxx>
Date:   Sat Jul 20 18:28:07 2019 +0300

    Change loglevel of message 'Hash of session info was not as expected'
---
 changes/bug12399           | 3 +++
 src/feature/rend/rendmid.c | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/changes/bug12399 b/changes/bug12399
new file mode 100644
index 000000000..922c08c5e
--- /dev/null
+++ b/changes/bug12399
@@ -0,0 +1,3 @@
+  o Minor bugfixes (logging):
+    - Change log level of message "Hash of session info was not as expected"
+      to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix on 0.1.1.10-alpha.
diff --git a/src/feature/rend/rendmid.c b/src/feature/rend/rendmid.c
index fcfa5052c..3ba48f885 100644
--- a/src/feature/rend/rendmid.c
+++ b/src/feature/rend/rendmid.c
@@ -70,7 +70,8 @@ rend_mid_establish_intro_legacy(or_circuit_t *circ, const uint8_t *request,
     goto err;
   }
   if (tor_memneq(expected_digest, request+2+asn1len, DIGEST_LEN)) {
-    log_warn(LD_PROTOCOL, "Hash of session info was not as expected.");
+    log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
+           "Hash of session info was not as expected.");
     reason = END_CIRC_REASON_TORPROTOCOL;
     goto err;
   }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits