]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix an erroneous !
authorNick Mathewson <nickm@torproject.org>
Tue, 5 Sep 2017 18:55:13 +0000 (14:55 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 5 Sep 2017 18:55:13 +0000 (14:55 -0400)
src/or/directory.c

index 1baf05390391cc03c1bf0b709da4a68f29f95153..5bf544e67fc1cd7c11bd8189007bae75e0186e73 100644 (file)
@@ -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);