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].
Commit
edd280c3b6f216b4ff35482ca585ed0a2644b6d6b645d99373ea0a02ebe64f55
Parent
280e12a35685a86…
1 file changed
+1
+1
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -397,10 +397,11 @@ | ||
| 397 | 397 | } |
| 398 | 398 | ssl_one_time_exception(pUrlData, zHash); |
| 399 | 399 | prompt_user("remember this exception (y/N)? ", &ans); |
| 400 | 400 | cReply = blob_str(&ans)[0]; |
| 401 | 401 | if( cReply=='y' || cReply=='Y') { |
| 402 | + db_open_config(0,0); | |
| 402 | 403 | ssl_remember_certificate_exception(pUrlData, zHash); |
| 403 | 404 | } |
| 404 | 405 | blob_reset(&ans); |
| 405 | 406 | } |
| 406 | 407 | } |
| 407 | 408 |
| --- 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 |