From 8ddc5a6aa696747f6b679b9be951a7316ee4a46e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 13 Jan 2007 12:13:37 +0000 Subject: [PATCH] Remove abort, add error handling. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19885 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/name.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/hx509/name.c b/lib/hx509/name.c index c0783932a..a5877dfc7 100644 --- a/lib/hx509/name.c +++ b/lib/hx509/name.c @@ -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 */