summaryrefslogtreecommitdiffstats
path: root/src/ccapi/lib/ccapi_context.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-01-11 12:06:37 -0500
committerGreg Hudson <ghudson@mit.edu>2013-01-11 12:27:43 -0500
commite73890eaf0f6f287132de882df8462e45ffe4987 (patch)
treec45050167d093e6c520dae188c4efa4d4aa4ae5e /src/ccapi/lib/ccapi_context.c
parent6338d039cbd0b138642e3b123ac58dc802d1d907 (diff)
downloadkrb5-e73890eaf0f6f287132de882df8462e45ffe4987.tar.gz
krb5-e73890eaf0f6f287132de882df8462e45ffe4987.tar.xz
krb5-e73890eaf0f6f287132de882df8462e45ffe4987.zip
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).
Diffstat (limited to 'src/ccapi/lib/ccapi_context.c')
0 files changed, 0 insertions, 0 deletions