Fossil SCM

After prompting to save an SSL cert verification, ensure that the config db is opened to avoid a fatal error when saving. See forum posts [forum:c53d1915a4e0a051|c53d1915a4e0a051] and [forum:4dcd2f16c289848c|4dcd2f16c289848c].

stephan 2021-08-20 22:41 trunk
Commit edd280c3b6f216b4ff35482ca585ed0a2644b6d6b645d99373ea0a02ebe64f55
1 file changed +1
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -397,10 +397,11 @@
397397
}
398398
ssl_one_time_exception(pUrlData, zHash);
399399
prompt_user("remember this exception (y/N)? ", &ans);
400400
cReply = blob_str(&ans)[0];
401401
if( cReply=='y' || cReply=='Y') {
402
+ db_open_config(0,0);
402403
ssl_remember_certificate_exception(pUrlData, zHash);
403404
}
404405
blob_reset(&ans);
405406
}
406407
}
407408
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -397,10 +397,11 @@
397 }
398 ssl_one_time_exception(pUrlData, zHash);
399 prompt_user("remember this exception (y/N)? ", &ans);
400 cReply = blob_str(&ans)[0];
401 if( cReply=='y' || cReply=='Y') {
 
402 ssl_remember_certificate_exception(pUrlData, zHash);
403 }
404 blob_reset(&ans);
405 }
406 }
407
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -397,10 +397,11 @@
397 }
398 ssl_one_time_exception(pUrlData, zHash);
399 prompt_user("remember this exception (y/N)? ", &ans);
400 cReply = blob_str(&ans)[0];
401 if( cReply=='y' || cReply=='Y') {
402 db_open_config(0,0);
403 ssl_remember_certificate_exception(pUrlData, zHash);
404 }
405 blob_reset(&ans);
406 }
407 }
408

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button