From 71fd841a2956e86e5876783f53faece6089432e9 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Sun, 10 Aug 1997 22:17:05 +0000 Subject: [PATCH] Fix a few typos. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2886 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/principal.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/krb5/principal.c b/lib/krb5/principal.c index 05b09b289..52b996e1f 100644 --- a/lib/krb5/principal.c +++ b/lib/krb5/principal.c @@ -474,9 +474,11 @@ krb5_425_conv_principal(krb5_context context, name = p; p = krb5_config_get_string(context->cf, "realms", realm, "v4_instance_convert", instance, NULL); - if(p) + if(p){ + instance = p; goto done; - if(krb5_config_get_string(context->cf, "lib_defaults", + } + if(krb5_config_get_string(context->cf, "libdefaults", "v4_instance_resolve", NULL)){ struct hostent *hp = gethostbyname(instance); if(hp){ @@ -485,7 +487,7 @@ krb5_425_conv_principal(krb5_context context, } } p = krb5_config_get_string(context->cf, "realms", realm, - "default_domain", instance, NULL); + "default_domain", NULL); if(p == NULL){ /* should this be an error or should it silently succeed? */