]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix and simplify locate_kdc.c port byte order 506/head
authorGreg Hudson <ghudson@mit.edu>
Sun, 7 Aug 2016 04:02:00 +0000 (00:02 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 8 Aug 2016 22:45:38 +0000 (18:45 -0400)
commite33eea280143a9602de4a8ad676bdbde89f5bfb9
tree2e19da9ae24f1e8b5b48a5107c55f3dc618b53a2
parent2a1d02f05ea734a5e7a81f69752a5d80b6598d48
Fix and simplify locate_kdc.c port byte order

Commit c89587b4476139f05f34aa2323bd7c7db348c44c introduced a bug in
the handling of KDC specifications using the default port, by passing
it to k5_parse_host_string() in network byte order.  Fix this by
removing all of the port byte order transformations in locate_kdc.c,
and storing the struct serverlist port field in host byte order.
Adjust other consumers of struct serverlist to expect the port to be
in host field to be in host byte order.

Reported by Isaac Boukris.
src/lib/krb5/os/changepw.c
src/lib/krb5/os/locate_kdc.c
src/lib/krb5/os/sendto_kdc.c
src/lib/krb5/os/t_locate_kdc.c
src/lib/krb5/os/t_std_conf.c