(krb5_425_conv_principal_ext): be more robust and handle extra dot at

the beginning of default_domain


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7584 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-12-12 00:59:52 +00:00
parent 8a2f54f877
commit 15caebcec9

View File

@@ -675,6 +675,8 @@ krb5_425_conv_principal_ext(krb5_context context,
return HEIM_ERR_V4_PRINC_NO_CONV;
}
if (*p == '.')
++p;
snprintf(host, sizeof(host), "%s.%s", instance, p);
ret = krb5_make_principal(context, &pr, realm, name, host, NULL);
if(func == NULL || (*func)(context, pr)){