From 07a41e8580aa4e30528594a509c06586b93a948e Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 11 Jul 1997 13:07:02 +0000 Subject: [PATCH] updated to current krb5_config_* git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2149 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/get_host_realm.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/krb5/get_host_realm.c b/lib/krb5/get_host_realm.c index f60757188..4fb9ec1de 100644 --- a/lib/krb5/get_host_realm.c +++ b/lib/krb5/get_host_realm.c @@ -22,11 +22,10 @@ krb5_get_host_realm(krb5_context context, const char *host, char ***realms) { - krb5_config_binding *state = NULL; char hostname[MAXHOSTNAMELEN]; char *res = NULL; const char *partial = NULL; - krb5_config_binding *l; + const krb5_config_binding *l; if (host == NULL) { if (gethostname (hostname, sizeof(hostname))) @@ -40,9 +39,7 @@ krb5_get_host_realm(krb5_context context, (*realms)[0] = NULL; (*realms)[1] = NULL; - for(l = krb5_config_get_next (context->cf, - &state, - LIST, + for(l = krb5_config_get_list (context->cf, "domain_realm", NULL); l;