Make krb5_get_init_creds_opt_free take a context argument.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19078 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-11-20 18:12:41 +00:00
parent ebc7f63d48
commit ece5f9603e
13 changed files with 19 additions and 17 deletions

View File

@@ -130,7 +130,8 @@ _krb5_get_init_creds_opt_set_krb5_error(krb5_context context,
void KRB5_LIB_FUNCTION
krb5_get_init_creds_opt_free(krb5_get_init_creds_opt *opt)
krb5_get_init_creds_opt_free(krb5_context context,
krb5_get_init_creds_opt *opt)
{
if (opt->opt_private == NULL)
return;

View File

@@ -729,8 +729,8 @@ pa_etype_info2(krb5_context context,
if (e.val[i].salt == NULL)
krb5_free_salt(context, salt);
if (ret == 0) {
free_ETYPE_INFO2(&e);
return paid;
free_ETYPE_INFO2(&e);
return paid;
}
}
}
@@ -1515,7 +1515,7 @@ krb5_get_init_creds_password(krb5_context context,
ret = krb5_get_init_creds_opt_set_pa_password(context, options,
password, NULL);
if (ret) {
krb5_get_init_creds_opt_free(options);
krb5_get_init_creds_opt_free(context, options);
memset(buf, 0, sizeof(buf));
return ret;
}
@@ -1523,7 +1523,7 @@ krb5_get_init_creds_password(krb5_context context,
ret = krb5_get_init_creds(context, creds, client, prompter,
data, start_time, in_tkt_service, options);
krb5_get_init_creds_opt_free(options);
krb5_get_init_creds_opt_free(context, options);
memset(buf, 0, sizeof(buf));
return ret;
}

View File

@@ -72,6 +72,7 @@ Kerberos 5 Library (libkrb5, -lkrb5)
.Fc
.Ft void
.Fo krb5_get_init_creds_opt_free
.Fa "krb5_context context"
.Fa "krb5_get_init_creds_opt *opt"
.Fc
.Ft void

View File

@@ -172,7 +172,7 @@ verify_user_opt_int(krb5_context context,
0,
NULL,
opt);
krb5_get_init_creds_opt_free(opt);
krb5_get_init_creds_opt_free(context, opt);
if(ret)
return ret;
#define OPT(V, D) ((vopt && (vopt->V)) ? (vopt->V) : (D))