Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rofl0r/proxychains-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-10-28 14:09:42 +0300
committerrofl0r <rofl0r@users.noreply.github.com>2020-10-28 14:12:36 +0300
commit13680e775d26b8097788037b2a7739f86b84d14a (patch)
tree7a6e4170999d96d94be1ebd0e61a2240fb62fe08
parent55dce2c04094a42ae12ebdb8872a5bbb479b356e (diff)
proxy_gethostbyname_old(): fix omission of namebuffer population
-rw-r--r--src/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 811ccfd..fb26292 100644
--- a/src/core.c
+++ b/src/core.c
@@ -827,6 +827,7 @@ got_buff:
memcpy(*(hostent_space.h_addr_list),
&addr ,sizeof(struct in_addr));
hostent_space.h_name = addr_name;
+ snprintf(addr_name, sizeof addr_name, "%s", buff);
hostent_space.h_length = sizeof (in_addr_t);
hostent_space.h_addrtype = AF_INET;
}