diff options
Diffstat (limited to 'crypto/heimdal/lib/krb5/krbhst.c')
-rw-r--r-- | crypto/heimdal/lib/krb5/krbhst.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crypto/heimdal/lib/krb5/krbhst.c b/crypto/heimdal/lib/krb5/krbhst.c index e869c622ca9d..8ffa6df2aacb 100644 --- a/crypto/heimdal/lib/krb5/krbhst.c +++ b/crypto/heimdal/lib/krb5/krbhst.c @@ -34,7 +34,7 @@ #include "krb5_locl.h" #include <resolve.h> -RCSID("$Id: krbhst.c,v 1.40 2001/07/19 16:57:15 assar Exp $"); +RCSID("$Id: krbhst.c,v 1.41 2002/08/16 18:48:19 nectar Exp $"); static int string_to_proto(const char *string) @@ -514,6 +514,8 @@ kpasswd_get_next(krb5_context context, struct krb5_krbhst_data *kd, krb5_krbhst_info **host) { + krb5_error_code ret; + if((kd->flags & KD_CONFIG) == 0) { config_get_hosts(context, kd, "kpasswd_server"); if(get_next(kd, host)) @@ -538,7 +540,10 @@ kpasswd_get_next(krb5_context context, kd->flags = 0; kd->port = kd->def_port; kd->get_next = admin_get_next; - return (*kd->get_next)(context, kd, host); + ret = (*kd->get_next)(context, kd, host); + if (ret == 0) + (*host)->proto = KRB5_KRBHST_UDP; + return ret; } return KRB5_KDC_UNREACH; /* XXX */ |