diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-06-24 17:42:55 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-06-24 17:42:55 +0000 |
commit | 0eba9e7dbae11998789edbcc87d3ef73add83bb1 (patch) | |
tree | ec183e10c771bf0e3d0c78dc2ca71c4b087a5059 /lib/libcurses | |
parent | 3a1235e5321d14983501dce7124eb07cc220d214 (diff) |
Replace 48 lines of code with a single inet_pton() call. The previous
handrolled version could not even make use of sscanf(), since that would
not work with a certain antiquated compiler.
It is worth noting that there is a tiny change in behaviour - previously
calling BIO_get_host_ip() with something that looked like it might be a
valid IP address (for example, "1." or even ".") would result in it
returning failure rather than trying a BIO_gethostbyname() - now we'll
always try a BIO_gethostbyname() if it was not a valid IPv4 address.
ok beck@ miod@ deraadt@
Diffstat (limited to 'lib/libcurses')
0 files changed, 0 insertions, 0 deletions