Procházet zdrojové kódy

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

Nick Mathewson před 10 roky
rodič
revize
b883b8d1a5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 */
   /* getting here means something went wrong */
   log_err(LD_BUG,"(Sandbox) failed to get address %s!", name);
   log_err(LD_BUG,"(Sandbox) failed to get address %s!", name);
-  return -1;
+  return EAI_NONAME;
 }
 }
 
 
 int
 int