]> git.ipfire.org Git - thirdparty/krb5.git/commit
Clean up k5_locate_server error handling
authorGreg Hudson <ghudson@mit.edu>
Fri, 11 Jan 2013 17:06:37 +0000 (12:06 -0500)
committerGreg Hudson <ghudson@mit.edu>
Fri, 11 Jan 2013 17:27:43 +0000 (12:27 -0500)
commite73890eaf0f6f287132de882df8462e45ffe4987
treec45050167d093e6c520dae188c4efa4d4aa4ae5e
parent6338d039cbd0b138642e3b123ac58dc802d1d907
Clean up k5_locate_server error handling

profile_get_values() cannot return success with an empty list of
values, so don't bother counting them.  Return 0 from
locate_srv_conf_1 if no profile values exist and from
dns_locate_server if we decide not to make a SRV query.  Adjust
k5_locate_server to match the new helper behavior, and return
KRB5_REALM_UNKNOWN if neither profile nor DNS come up with any answers
(not KRB5_REALM_CANT_RESOLVE, which doesn't make sense now that we're
deferring KDC hostname resolution).
src/lib/krb5/os/locate_kdc.c