use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23288 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -54,7 +54,7 @@ krb5_kt_register(krb5_context context,
|
|||||||
tmp = realloc(context->kt_types,
|
tmp = realloc(context->kt_types,
|
||||||
(context->num_kt_types + 1) * sizeof(*context->kt_types));
|
(context->num_kt_types + 1) * sizeof(*context->kt_types));
|
||||||
if(tmp == NULL) {
|
if(tmp == NULL) {
|
||||||
krb5_set_error_string(context, "malloc: out of memory");
|
krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
}
|
}
|
||||||
memcpy(&tmp[context->num_kt_types], ops,
|
memcpy(&tmp[context->num_kt_types], ops,
|
||||||
@@ -104,7 +104,7 @@ krb5_kt_resolve(krb5_context context,
|
|||||||
|
|
||||||
k = malloc (sizeof(*k));
|
k = malloc (sizeof(*k));
|
||||||
if (k == NULL) {
|
if (k == NULL) {
|
||||||
krb5_set_error_string(context, "malloc: out of memory");
|
krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
}
|
}
|
||||||
memcpy(k, &context->kt_types[i], sizeof(*k));
|
memcpy(k, &context->kt_types[i], sizeof(*k));
|
||||||
|
Reference in New Issue
Block a user