浏览代码

Fix an erroneous !

Nick Mathewson 6 年之前
父节点
当前提交
4e02d02076
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/directory.c

+ 1 - 1
src/or/directory.c

@@ -1969,7 +1969,7 @@ parse_http_url(const char *headers, char **url)
   if (parse_http_command(headers, &command, url) < 0) {
     return -1;
   }
-  if (!strcmpstart(*url, "/tor/")) {
+  if (strcmpstart(*url, "/tor/")) {
     char *new_url = NULL;
     tor_asprintf(&new_url, "/tor/%s", *url);
     tor_free(*url);