(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:
@@ -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)){
|
||||
|
Reference in New Issue
Block a user