Remove abort, add error handling.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19885 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-01-13 12:13:37 +00:00
parent 342aad4138
commit 8ddc5a6aa6

View File

@@ -556,8 +556,10 @@ hx509_name_expand(hx509_context context,
strpool = rk_strpoolprintf(strpool, "%.*s",
(int)(p - ds->u.utf8String),
ds->u.utf8String);
if (strpool == NULL)
abort();
if (strpool == NULL) {
hx509_set_error_string(context, 0, ENOMEM, "out of memory");
return ENOMEM;
}
}
while (p != NULL) {
/* expand variables */