cgmnlm

colorful gemini line mode browser
git clone https://git.clttr.info/cgmnlm.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 39339c348f593bda9ca0a556affa38cd5e15138c
parent d6777ec2788f9ece56a6201fb091dba4a15f739a
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 21 Sep 2020 22:22:18 -0400

Fix issues with tofu.c

Diffstat:
Msrc/tofu.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/tofu.c b/src/tofu.c @@ -31,6 +31,7 @@ verify_callback(X509_STORE_CTX *ctx, void *data) // TODO: Check that the subject name is valid for the requested URL. struct gemini_tofu *tofu = (struct gemini_tofu *)data; X509 *cert = X509_STORE_CTX_get0_cert(ctx); + struct known_host *host = NULL; int rc; int day, sec; @@ -77,7 +78,7 @@ verify_callback(X509_STORE_CTX *ctx, void *data) time(&now); enum tofu_error error = TOFU_UNTRUSTED_CERT; - struct known_host *host = tofu->known_hosts; + host = tofu->known_hosts; while (host) { if (host->expires < now) { goto next;