[tor/master] Yield a real error in the bug case of sandbox_getaddrinfo()

11 Jun
2014
11 Jun
'14
3:03 p.m.
commit b883b8d1a5edbccbc38c77f8e8bdea549792bd22 Author: Nick Mathewson <nickm@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
4030
Age (days ago)
4030
Last active (days ago)
0 comments
1 participants
participants (1)
-
nickm@torproject.org