mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
added contingency message to test for sandbox_getaddrinfo
This commit is contained in:
parent
c584537a03
commit
fe6e2733ab
@ -930,6 +930,7 @@ sandbox_getaddrinfo(const char *name, struct addrinfo **res)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log_err(LD_BUG,"(Sandbox) failed to get address %s!", name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -958,7 +959,7 @@ sandbox_add_addrinfo(const char* name)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
el->name = strdup(name);
|
el->name = tor_strdup(name);
|
||||||
el->next = sb_addr_info;
|
el->next = sb_addr_info;
|
||||||
sb_addr_info = el;
|
sb_addr_info = el;
|
||||||
|
|
||||||
|
@ -2640,7 +2640,8 @@ find_flashcard_path(PWCHAR path, size_t size)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
init_addrinfo(void) {
|
init_addrinfo(void)
|
||||||
|
{
|
||||||
char hname[256];
|
char hname[256];
|
||||||
|
|
||||||
// host name to sandbox
|
// host name to sandbox
|
||||||
|
Loading…
Reference in New Issue
Block a user