]> git.ipfire.org Git - thirdparty/krb5.git/commit
Make use of strtoul() unconditional in locate_kdc
authorNalin Dahyabhai <nalin@dahyabhai.net>
Sat, 8 Feb 2014 01:14:24 +0000 (20:14 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 20 Mar 2014 21:51:30 +0000 (17:51 -0400)
commitd03aff9fa23a5ad223bb7e7a8c48c070d64e1aa3
tree218c18d67bf8d8e0ff23b9c7802b72d9b623ca53
parentb562400826409deceb0d52ffbe6570670ee9db55
Make use of strtoul() unconditional in locate_kdc

When parsing port numbers, we previously attempted to conditionalize use
of strtoul() on whether or not it was available, falling back to atoi()
instead, but we did so in a way that would always fall back to using
atoi().  We also call strtoul() from elsewhere without that condition,
so we don't gain anything by trying to be careful about it here.
src/lib/krb5/os/locate_kdc.c