]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
clean up fr_pton()
authorAlan T. DeKok <aland@freeradius.org>
Mon, 12 Feb 2018 23:49:34 +0000 (18:49 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 12 Feb 2018 23:49:34 +0000 (18:49 -0500)
commit5452b13cefa3b30f1da467ff5d68b3c1aa471188
treec22bc02cb7448881bbaa3edcbed106481d282f46
parentd8a5f104646d59fd1cbd53826616117335ab3ad9
clean up fr_pton()

strchr() from the previous commit didn't work, because it
ignored inlen.  Instead, walk over the *whole* string, checking
*all* of the characters.  The issue with the earlier code was
that it bailed too early, and forced IPv4 even when the address
was IPv6.
src/lib/misc.c