Reset SOC_hostent_alias to NULL in case the user trashed it.

This commit is contained in:
mtheall 2014-08-20 15:01:56 -05:00
parent c3f7bfa7fd
commit f58601037c

View File

@ -847,6 +847,8 @@ struct hostent * gethostbyname(const char * name)
SOC_hostent.h_length = 4;
SOC_hostent.h_addr_list = SOC_hostent_results;
SOC_hostent_alias = NULL;
for(i = 0; i < num_results; ++i)
SOC_hostent_results[i] = (char*)outbuf + 0x1908 + i*0x10;
SOC_hostent_results[num_results] = NULL;