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:
@@ -556,8 +556,10 @@ hx509_name_expand(hx509_context context,
|
|||||||
strpool = rk_strpoolprintf(strpool, "%.*s",
|
strpool = rk_strpoolprintf(strpool, "%.*s",
|
||||||
(int)(p - ds->u.utf8String),
|
(int)(p - ds->u.utf8String),
|
||||||
ds->u.utf8String);
|
ds->u.utf8String);
|
||||||
if (strpool == NULL)
|
if (strpool == NULL) {
|
||||||
abort();
|
hx509_set_error_string(context, 0, ENOMEM, "out of memory");
|
||||||
|
return ENOMEM;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
while (p != NULL) {
|
while (p != NULL) {
|
||||||
/* expand variables */
|
/* expand variables */
|
||||||
|
Reference in New Issue
Block a user