[tor-commits] [tor/master] Yield a real error in the bug case of sandbox_getaddrinfo()
nickm at torproject.org
nickm at torproject.org
Wed Jun 11 15:03:15 UTC 2014
commit b883b8d1a5edbccbc38c77f8e8bdea549792bd22
Author: Nick Mathewson <nickm at torproject.org>
Date: Wed Jun 11 11:00:56 2014 -0400
Yield a real error in the bug case of sandbox_getaddrinfo()
---
src/common/sandbox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index eba766b..a387f37 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
More information about the tor-commits
mailing list