no need to use krb5_get_init_creds_opt_init(o);
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23985 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -55,13 +55,15 @@ krb5_get_init_creds_opt_alloc(krb5_context context,
|
||||
*opt = NULL;
|
||||
o = calloc(1, sizeof(*o));
|
||||
if (o == NULL) {
|
||||
krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", ""));
|
||||
krb5_set_error_message(context, ENOMEM,
|
||||
N_("malloc: out of memory", ""));
|
||||
return ENOMEM;
|
||||
}
|
||||
krb5_get_init_creds_opt_init(o);
|
||||
|
||||
o->opt_private = calloc(1, sizeof(*o->opt_private));
|
||||
if (o->opt_private == NULL) {
|
||||
krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", ""));
|
||||
krb5_set_error_message(context, ENOMEM,
|
||||
N_("malloc: out of memory", ""));
|
||||
free(o);
|
||||
return ENOMEM;
|
||||
}
|
||||
|
Reference in New Issue
Block a user