瀏覽代碼

ha ha, that infinite loop was fun.
but dirservers aren't supposed to have infinite loops.


svn:r4831

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

+ 1 - 1
src/or/directory.c

@@ -527,7 +527,7 @@ http_get_header(const char *headers, const char *which)
       else
         return tor_strdup(cp);
     }
-    cp = strchr(headers, '\n');
+    cp = strchr(cp, '\n');
     if (cp)
       ++cp;
   }