Преглед изворни кода

Fix: test -ENOENT after config_parse_unix_port()

Check for -ENOENT instead of ENOENT after the HS port is parsed.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
David Goulet пре 9 година
родитељ
комит
44e9dafb67
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/or/rendservice.c

+ 1 - 1
src/or/rendservice.c

@@ -368,7 +368,7 @@ parse_port_config(const char *string)
 
     addrport = smartlist_get(sl,1);
     ret = config_parse_unix_port(addrport, &socket_path);
-    if (ret < 0 && ret != ENOENT) {
+    if (ret < 0 && ret != -ENOENT) {
       if (ret == -EINVAL) {
         log_warn(LD_CONFIG,
                  "Empty socket path in hidden service port configuration.");