use krb5_set_error_message

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23305 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-06-23 03:30:04 +00:00
parent 47a24feed6
commit 3a1039724a

View File

@@ -188,7 +188,7 @@ krb5_rd_safe(krb5_context context,
outbuf->data = malloc(outbuf->length);
if (outbuf->data == NULL && outbuf->length != 0) {
ret = ENOMEM;
krb5_set_error_string (context, "malloc: out of memory");
krb5_set_error_message(context, ret, "malloc: out of memory");
krb5_data_zero(outbuf);
goto failure;
}