diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-05-04 18:29:33 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-05-04 18:29:33 +0100 |
commit | bb5d5562bcbea50056af7ec6f34319b066276a88 (patch) | |
tree | 118b1d9bc58d2ea80afacf8493c30ca397b85fb4 | |
parent | 18dd34babfefda92de1e9d82974d605618dc3c9b (diff) | |
download | netsurf-bb5d5562bcbea50056af7ec6f34319b066276a88.tar.gz netsurf-bb5d5562bcbea50056af7ec6f34319b066276a88.tar.bz2 |
llcache: Actually pass on certificate chain properly
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r-- | content/llcache.c | 15 |
1 files 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 */ |