Explorar o código

Yield a real error in the bug case of sandbox_getaddrinfo()

Nick Mathewson %!s(int64=10) %!d(string=hai) anos
pai
achega
b883b8d1a5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/sandbox.c

+ 1 - 1
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