[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Yield a real error in the bug case of sandbox_getaddrinfo()
commit b883b8d1a5edbccbc38c77f8e8bdea549792bd22
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits