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:
@@ -188,7 +188,7 @@ krb5_rd_safe(krb5_context context,
|
|||||||
outbuf->data = malloc(outbuf->length);
|
outbuf->data = malloc(outbuf->length);
|
||||||
if (outbuf->data == NULL && outbuf->length != 0) {
|
if (outbuf->data == NULL && outbuf->length != 0) {
|
||||||
ret = ENOMEM;
|
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);
|
krb5_data_zero(outbuf);
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user