diff options
author | Vincent Milum Jr <git@darkain.com> | 2018-09-14 22:42:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-14 22:42:58 -0700 |
commit | 8e260bae116f01839899d319e5efb0e6867b99a0 (patch) | |
tree | 8b0a2748486605e297a5fb67738c0cd2a9712dca /osdep/freebsd_getifmaddrs.c | |
parent | e01c0adff28602d48ad6f0d618bee072ec7843da (diff) | |
download | infinitytier-8e260bae116f01839899d319e5efb0e6867b99a0.tar.gz infinitytier-8e260bae116f01839899d319e5efb0e6867b99a0.zip |
Correcting conversion to/from IP address / string
1) Use existing standard libraries to convert to/from IPv4/IPv6 strings and binary representation.
2) Move null terminator assignment InetAddress::toIpString to top of function, this way if ANY errors occurs that don't write content to the buffer, we're not passing a potentially dangerous buffer around.
Diffstat (limited to 'osdep/freebsd_getifmaddrs.c')
0 files changed, 0 insertions, 0 deletions