소스 검색

if a relay cell is unrecognized at the end of the circuit,
send back a destroy


svn:r1153

Roger Dingledine 21 년 전
부모
커밋
3a1a6bb09e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/circuit.c

+ 1 - 1
src/or/circuit.c

@@ -439,7 +439,7 @@ int circuit_receive_relay_cell(cell_t *cell, circuit_t *circ,
 
   if(!conn) {
     log_fn(LOG_WARN,"Didn't recognize cell, but circ stops here! Dropping.");
-    return 0; /* XXX if this warning never triggers, then return -1 */
+    return -1;
   }
 
   log_fn(LOG_DEBUG,"Passing on unrecognized cell.");