瀏覽代碼

when a begin cell has an invalid port, give us a better hint of
what went wrong


svn:r2435

Roger Dingledine 21 年之前
父節點
當前提交
6468e049be
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/connection_edge.c

+ 1 - 1
src/or/connection_edge.c

@@ -758,7 +758,7 @@ int connection_exit_begin_conn(cell_t *cell, circuit_t *circ) {
   *colon = 0;
   *colon = 0;
 
 
   if(!atoi(colon+1)) { /* bad port */
   if(!atoi(colon+1)) { /* bad port */
-    log_fn(LOG_WARN,"relay begin cell has invalid port. Dropping.");
+    log_fn(LOG_WARN,"relay begin cell has invalid port '%s'. Dropping.", colon+1);
     return 0;
     return 0;
   }
   }