summaryrefslogtreecommitdiff
path: root/src/or/hs_circuit.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-07-06 13:50:16 +0300
committerNick Mathewson <nickm@torproject.org>2017-07-07 11:12:26 -0400
commitfee95dabcfe21a35e3f5a1ad4b455fe4be1f749a (patch)
treeee032a404708f3f85cf8fb9e197b6c91de5e31cc /src/or/hs_circuit.c
parent91da032e9cc264d88802d0bfc072b0b4117c5f33 (diff)
downloadtor-fee95dabcfe21a35e3f5a1ad4b455fe4be1f749a.tar.gz
tor-fee95dabcfe21a35e3f5a1ad4b455fe4be1f749a.zip
Turn some warnings into bugs and non-fatal asserts.
Diffstat (limited to 'src/or/hs_circuit.c')
-rw-r--r--src/or/hs_circuit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/hs_circuit.c b/src/or/hs_circuit.c
index 02c9afa309..2d186e9f47 100644
--- a/src/or/hs_circuit.c
+++ b/src/or/hs_circuit.c
@@ -23,8 +23,8 @@ rend_circuit_validate_purpose(unsigned int circ_purpose, int is_service_side)
{
if (is_service_side) {
if (circ_purpose != CIRCUIT_PURPOSE_S_CONNECT_REND) {
- log_warn(LD_GENERAL, "HS e2e circuit setup with wrong purpose(%d)",
- circ_purpose);
+ log_fn(LOG_PROTOCOL_WARN, LD_GENERAL,
+ "HS e2e circuit setup with wrong purpose(%d)", circ_purpose);
return -1;
}
}
@@ -32,8 +32,8 @@ rend_circuit_validate_purpose(unsigned int circ_purpose, int is_service_side)
if (!is_service_side) {
if (circ_purpose != CIRCUIT_PURPOSE_C_REND_READY &&
circ_purpose != CIRCUIT_PURPOSE_C_REND_READY_INTRO_ACKED) {
- log_warn(LD_GENERAL, "Client e2e circuit setup with wrong purpose(%d)",
- circ_purpose);
+ log_fn(LOG_PROTOCOL_WARN, LD_GENERAL,
+ "Client e2e circuit setup with wrong purpose(%d)", circ_purpose);
return -1;
}
}