ws2_32: Fix allocating a hostent with no h_aliases list. (try 2)
ehoover at mines.edu
Mon Dec 14 09:37:12 CST 2009
The attached patch fixes Bug #20995, which was introduced by
commit 355818ae1e1222bffab7d014a952e4f70e3623d0. When an application
requests the local IP addresses using gethostbyname() the returned
hostent has an empty h_aliases list. Without this patch applications
will crash if they examine the h_aliases list without first ensuring
that h_aliases is non-NULL. This version differs from the last in
that it does not include a check on the validity of the internally
generated "list length" parameters and instead provides additional
documentation on the proper calling procedure.
ws2_32: Fix allocating a hostent with no h_aliases list.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3740 bytes
Desc: not available
More information about the wine-patches