diff options
author | David Goulet <dgoulet@ev0ke.net> | 2015-01-30 14:12:30 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-30 14:13:27 -0500 |
commit | 44e9dafb67370aa6fb163cda150a80466f668111 (patch) | |
tree | 23dd5af4699ff8a9c790d86ef16f894ba3dfe229 /src/or/rendservice.c | |
parent | fac8d40886a03d442ed9f8c18df5ed017b1e6dd0 (diff) | |
download | tor-44e9dafb67370aa6fb163cda150a80466f668111.tar.gz tor-44e9dafb67370aa6fb163cda150a80466f668111.zip |
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>
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 69ea6a9857..7028763d39 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."); |