summaryrefslogtreecommitdiff
path: root/lib/libc/net/gethostbynis.c
Commit message (Collapse)AuthorAgeFilesLines
* gethostbynis.c:Bill Paul1996-03-161-5/+18
| | | | | | | | | | | | | | | | | | | | | - Fix problem described in PR #1079: _gethostbynisaddr() doesn't work. Make it accept the same arguments as all the other gethostby*addr() functions and properly convert the supplied IP address into a text string so that yp_match() can find it in the hosts.byaddr map. - Also fix potential memory leak: copy the results of yp_match() to a static buffer and free the result (yp_match() returns dynamically allocated memory). ether_addr.c: - Since I was in the neighborhood, fix ether_ntohost() and ether_hostton() so that they don't bogusly for a free(result) when yp_match() fails. Notes: svn path=/head/; revision=14639
* get* rework and new bind codePaul Traina1994-09-251-0/+115
Notes: svn path=/head/; revision=3070