use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23293 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -75,14 +75,14 @@ mkt_resolve(krb5_context context, const char *name, krb5_keytab id)
|
||||
d = calloc(1, sizeof(*d));
|
||||
if(d == NULL) {
|
||||
HEIMDAL_MUTEX_unlock(&mkt_mutex);
|
||||
krb5_set_error_string (context, "malloc: out of memory");
|
||||
krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
|
||||
return ENOMEM;
|
||||
}
|
||||
d->name = strdup(name);
|
||||
if (d->name == NULL) {
|
||||
HEIMDAL_MUTEX_unlock(&mkt_mutex);
|
||||
free(d);
|
||||
krb5_set_error_string (context, "malloc: out of memory");
|
||||
krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
|
||||
return ENOMEM;
|
||||
}
|
||||
d->entries = NULL;
|
||||
@@ -176,7 +176,7 @@ mkt_add_entry(krb5_context context,
|
||||
krb5_keytab_entry *tmp;
|
||||
tmp = realloc(d->entries, (d->num_entries + 1) * sizeof(*d->entries));
|
||||
if(tmp == NULL) {
|
||||
krb5_set_error_string (context, "malloc: out of memory");
|
||||
krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
|
||||
return ENOMEM;
|
||||
}
|
||||
d->entries = tmp;
|
||||
|
Reference in New Issue
Block a user