You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4043 Reporter: grenie Status: closed (set by @xavierleroy on 2006-06-10T09:11:02Z) Resolution: fixed Priority: normal Severity: trivial Version: 3.09.2 Category: ~DO NOT USE (was: OCaml general)
Bug description
In unix_gethostbyname(), my C library gethostbyname() returns a pointer to a structure where h_aliases is a null pointer (as far as I understand, it should not happen, but, well, it does...). I just wanted to suggest to modify alloc_host_entry's
aliases = copy_string_array((const char**)entry->h_aliases);
in
if (entry->h_aliases)
aliases = copy_string_array((const char**)entry->h_aliases);
else
aliases = Atom(0);
or something similar.
Additional information
Works on a broadcom 4702 MIPS (32 bit, small endian) "computer", cross compiled from an x86.
The text was updated successfully, but these errors were encountered:
Original bug ID: 4043
Reporter: grenie
Status: closed (set by @xavierleroy on 2006-06-10T09:11:02Z)
Resolution: fixed
Priority: normal
Severity: trivial
Version: 3.09.2
Category: ~DO NOT USE (was: OCaml general)
Bug description
In unix_gethostbyname(), my C library gethostbyname() returns a pointer to a structure where h_aliases is a null pointer (as far as I understand, it should not happen, but, well, it does...). I just wanted to suggest to modify alloc_host_entry's
aliases = copy_string_array((const char**)entry->h_aliases);
in
if (entry->h_aliases)
aliases = copy_string_array((const char**)entry->h_aliases);
else
aliases = Atom(0);
or something similar.
Additional information
Works on a broadcom 4702 MIPS (32 bit, small endian) "computer", cross compiled from an x86.
The text was updated successfully, but these errors were encountered: