]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix bugs in recent locate_kdc.c change 461/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 2 Jun 2016 15:58:35 +0000 (11:58 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 2 Jun 2016 22:23:44 +0000 (18:23 -0400)
commitce112dec844e4650b5ad174bd40f21c32aebe1d1
tree7c5cdbce822ab209abf16106aed8dae0477e51c1
parenta9478009dc9a5f554fbd7566432be8175e96ed50
Fix bugs in recent locate_kdc.c change

The most recent change to locate_srv_conf_1() introduced a possible
double-free bug (detected by Coverity), and also broke MS-KKDCP
support.  Separate the three uses of the "host" variable: the C string
copy of the realm name (now "realmstr"), the pointer to the hostname
or hostname:port specification in the profile values array (now
"hostspec"), and the hostname result of k5_parse_host_string() (still
"host").  Pass the correct pointer to k5_parse_host_string() if the
profile value is a URI.
src/lib/krb5/os/locate_kdc.c