aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-06-11 11:00:56 -0400
committerNick Mathewson <nickm@torproject.org>2014-06-11 11:00:56 -0400
commitb883b8d1a5edbccbc38c77f8e8bdea549792bd22 (patch)
tree055304c8dd07aac99714c0279f32a6f141f66744
parente425fc78045f99725d256956acc7360ed71bfaa5 (diff)
downloadtor-b883b8d1a5edbccbc38c77f8e8bdea549792bd22.tar
tor-b883b8d1a5edbccbc38c77f8e8bdea549792bd22.tar.gz
Yield a real error in the bug case of sandbox_getaddrinfo()
-rw-r--r--src/common/sandbox.c2
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