Reset SOC_hostent_alias to NULL in case the user trashed it.
This commit is contained in:
parent
c3f7bfa7fd
commit
f58601037c
@ -847,6 +847,8 @@ struct hostent * gethostbyname(const char * name)
|
|||||||
SOC_hostent.h_length = 4;
|
SOC_hostent.h_length = 4;
|
||||||
SOC_hostent.h_addr_list = SOC_hostent_results;
|
SOC_hostent.h_addr_list = SOC_hostent_results;
|
||||||
|
|
||||||
|
SOC_hostent_alias = NULL;
|
||||||
|
|
||||||
for(i = 0; i < num_results; ++i)
|
for(i = 0; i < num_results; ++i)
|
||||||
SOC_hostent_results[i] = (char*)outbuf + 0x1908 + i*0x10;
|
SOC_hostent_results[i] = (char*)outbuf + 0x1908 + i*0x10;
|
||||||
SOC_hostent_results[num_results] = NULL;
|
SOC_hostent_results[num_results] = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user