mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
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>
This commit is contained in:
parent
fac8d40886
commit
44e9dafb67
@ -368,7 +368,7 @@ parse_port_config(const char *string)
|
|||||||
|
|
||||||
addrport = smartlist_get(sl,1);
|
addrport = smartlist_get(sl,1);
|
||||||
ret = config_parse_unix_port(addrport, &socket_path);
|
ret = config_parse_unix_port(addrport, &socket_path);
|
||||||
if (ret < 0 && ret != ENOENT) {
|
if (ret < 0 && ret != -ENOENT) {
|
||||||
if (ret == -EINVAL) {
|
if (ret == -EINVAL) {
|
||||||
log_warn(LD_CONFIG,
|
log_warn(LD_CONFIG,
|
||||||
"Empty socket path in hidden service port configuration.");
|
"Empty socket path in hidden service port configuration.");
|
||||||
|
Loading…
Reference in New Issue
Block a user