Updated the copyright line
Fixed an infinite loop
Added a test suite for netdb.c from libsocket