From bb5d5562bcbea50056af7ec6f34319b066276a88 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 4 May 2020 18:29:33 +0100 Subject: llcache: Actually pass on certificate chain properly Signed-off-by: Daniel Silverstone --- content/llcache.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/content/llcache.c b/content/llcache.c index 2eb471d54..0d92a99cc 100644 --- a/content/llcache.c +++ b/content/llcache.c @@ -3081,12 +3081,17 @@ static void llcache_fetch_callback(const fetch_msg *msg, void *p) /* Persist the chain onto our object */ error = cert_chain_dup(msg->data.chain, &object->chain); if (error != NSERROR_OK) { - /* Now pass on the event */ - event.type = LLCACHE_EVENT_GOT_CERTS; - event.data.chain = msg->data.chain; - - error = llcache_send_event_to_users(object, &event); + NSLOG(llcache, ERROR, + "Unable to duplicate cert chain into cache: %s", + messages_get_errorcode(error)); } + + /* Now pass on the event */ + event.type = LLCACHE_EVENT_GOT_CERTS; + event.data.chain = msg->data.chain; + + error = llcache_send_event_to_users(object, &event); + break; /* Events requiring action */ -- cgit v1.2.3