diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-06-11 11:00:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-06-11 11:00:56 -0400 |
commit | b883b8d1a5edbccbc38c77f8e8bdea549792bd22 (patch) | |
tree | 055304c8dd07aac99714c0279f32a6f141f66744 | |
parent | e425fc78045f99725d256956acc7360ed71bfaa5 (diff) | |
download | tor-b883b8d1a5edbccbc38c77f8e8bdea549792bd22.tar tor-b883b8d1a5edbccbc38c77f8e8bdea549792bd22.tar.gz |
Yield a real error in the bug case of sandbox_getaddrinfo()
-rw-r--r-- | src/common/sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c index eba766bb1..a387f371c 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -1397,7 +1397,7 @@ sandbox_getaddrinfo(const char *name, const char *servname, /* getting here means something went wrong */ log_err(LD_BUG,"(Sandbox) failed to get address %s!", name); - return -1; + return EAI_NONAME; } int |