From 659e1cb47ec0b8f7cfdfe0dd36cbb661523f884e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 1 Jun 2007 22:02:01 +0000 Subject: [PATCH] Update _hx509_collector_alloc prototype. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20776 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/ks_file.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/hx509/ks_file.c b/lib/hx509/ks_file.c index f79df10bc..7eeab5e3b 100644 --- a/lib/hx509/ks_file.c +++ b/lib/hx509/ks_file.c @@ -542,12 +542,9 @@ file_init(hx509_context context, return 0; } - c = _hx509_collector_alloc(context, lock); - if (c == NULL) { - ret = ENOMEM; - hx509_set_error_string(context, 0, ret, "out of memory"); + ret = _hx509_collector_alloc(context, lock, &c); + if (ret) goto out; - } for (p = f->fn; p != NULL; p = pnext) { int found_data;