aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-10-27 16:57:18 +0000
committerNick Mathewson <nickm@torproject.org>2008-10-27 16:57:18 +0000
commitaccb4a680f318a225f51b047014e2c5a3671aa6f (patch)
tree79a65c3ec0be2808c2a5119f8d4d4577a08b602a /src
parentee31e0829e976412c57521ab1cacfb57a1a76931 (diff)
downloadtor-accb4a680f318a225f51b047014e2c5a3671aa6f.tar
tor-accb4a680f318a225f51b047014e2c5a3671aa6f.tar.gz
make layer_hint check a little stricter.
svn:r17164
Diffstat (limited to 'src')
-rw-r--r--src/or/rendcommon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index b5f8683f9..bcbff326d 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -1396,7 +1396,7 @@ rend_process_relay_cell(circuit_t *circ, const crypt_path_t *layer_hint,
int r = -2;
if (CIRCUIT_IS_ORIGIN(circ)) {
origin_circ = TO_ORIGIN_CIRCUIT(circ);
- if (layer_hint && layer_hint != origin_circ->cpath->prev) {
+ if (!layer_hint || layer_hint != origin_circ->cpath->prev) {
log_fn(LOG_PROTOCOL_WARN, LD_APP,
"Relay cell (rend purpose %d) from wrong hop on origin circ",
command);