mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 09:44:24 +03:00
llcache: Actually pass on certificate chain properly
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
18dd34babf
commit
bb5d5562bc
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user