diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-09-02 12:16:02 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-09-02 12:16:02 +0300 |
commit | fe6e2733ab1e75e0b56741fa06094b257b3695b8 (patch) | |
tree | a12d18ee2338e674597d937f27cd7578f6218c94 /src/common | |
parent | c584537a038cdeede4d52b52a73dcbb3035112a4 (diff) | |
download | tor-fe6e2733ab1e75e0b56741fa06094b257b3695b8.tar.gz tor-fe6e2733ab1e75e0b56741fa06094b257b3695b8.zip |
added contingency message to test for sandbox_getaddrinfo
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/sandbox.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c index a4919121cf..84d21833bb 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -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; } @@ -958,7 +959,7 @@ sandbox_add_addrinfo(const char* name) goto out; } - el->name = strdup(name); + el->name = tor_strdup(name); el->next = sb_addr_info; sb_addr_info = el; |