]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix: test -ENOENT after config_parse_unix_port()
authorDavid Goulet <dgoulet@ev0ke.net>
Fri, 30 Jan 2015 19:12:30 +0000 (14:12 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 30 Jan 2015 19:13:27 +0000 (14:13 -0500)
Check for -ENOENT instead of ENOENT after the HS port is parsed.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
src/or/rendservice.c

index 69ea6a98579cccf29740d7f3c51de2a8d83010e7..7028763d39b5db86056285ecdf207ad199b9d0da 100644 (file)
@@ -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.");