This is not an issue of returning a wrong value, but the gethostbyname code does have a bug.
Valgrind reports a number of "Conditional jump or move depends on uninitialised value(s)" which is a result of code paths being taken which depend on uninitialised automatic variables. Compiling the gethostbyname code with -Wuninitialized should report an error. Reassigning to libc (if I can figure out how). -- Valgrind errors on gethostbyname(). https://launchpad.net/bugs/59449 -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
