commit 44e9dafb67370aa6fb163cda150a80466f668111 Author: David Goulet dgoulet@ev0ke.net Date: Fri Jan 30 14:12:30 2015 -0500
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 --- src/or/rendservice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 69ea6a9..7028763 100644 --- a/src/or/rendservice.c +++ b/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.");
tor-commits@lists.torproject.org