proxy_gethostbyname_old(): fix omission of namebuffer population

pull/356/head
rofl0r 2020-10-28 11:09:42 +00:00
parent 55dce2c040
commit 13680e775d
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}