only set password if we have one, dont free krb-error since it removed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24215 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -284,16 +284,15 @@ get_init_creds_common(krb5_context context,
|
|||||||
krb5_get_init_creds_opt_alloc (context, &default_opt);
|
krb5_get_init_creds_opt_alloc (context, &default_opt);
|
||||||
options = default_opt;
|
options = default_opt;
|
||||||
krb5_get_init_creds_opt_set_default_flags(context, NULL, realm, options);
|
krb5_get_init_creds_opt_set_default_flags(context, NULL, realm, options);
|
||||||
|
|
||||||
} else {
|
|
||||||
_krb5_get_init_creds_opt_free_krb5_error(options);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options->opt_private) {
|
if (options->opt_private) {
|
||||||
ret = krb5_init_creds_set_password(context, ctx,
|
if (options->opt_private->password) {
|
||||||
options->opt_private->password);
|
ret = krb5_init_creds_set_password(context, ctx,
|
||||||
if (ret)
|
options->opt_private->password);
|
||||||
goto out;
|
if (ret)
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
ctx->keyproc = options->opt_private->key_proc;
|
ctx->keyproc = options->opt_private->key_proc;
|
||||||
ctx->req_pac = options->opt_private->req_pac;
|
ctx->req_pac = options->opt_private->req_pac;
|
||||||
|
Reference in New Issue
Block a user