Fossil SCM
Unprotect the ssl-identity property when setting it.
Commit
e3636830abcee11c75da3e5c74ff02f7c8fafc09cc7e78568863d9d82240e7ca
Parent
cef8425cf4a482a…
1 file changed
+2
+2
| --- src/clone.c | ||
| +++ src/clone.c | ||
| @@ -199,11 +199,13 @@ | ||
| 199 | 199 | if( g.zSSLIdentity!=0 ){ |
| 200 | 200 | /* If the --ssl-identity option was specified, store it as a setting */ |
| 201 | 201 | Blob fn; |
| 202 | 202 | blob_zero(&fn); |
| 203 | 203 | file_canonical_name(g.zSSLIdentity, &fn, 0); |
| 204 | + db_unprotect(PROTECT_ALL); | |
| 204 | 205 | db_set("ssl-identity", blob_str(&fn), 0); |
| 206 | + db_protect_pop(); | |
| 205 | 207 | blob_reset(&fn); |
| 206 | 208 | } |
| 207 | 209 | db_unprotect(PROTECT_CONFIG); |
| 208 | 210 | db_multi_exec( |
| 209 | 211 | "REPLACE INTO config(name,value,mtime)" |
| 210 | 212 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -199,11 +199,13 @@ | |
| 199 | if( g.zSSLIdentity!=0 ){ |
| 200 | /* If the --ssl-identity option was specified, store it as a setting */ |
| 201 | Blob fn; |
| 202 | blob_zero(&fn); |
| 203 | file_canonical_name(g.zSSLIdentity, &fn, 0); |
| 204 | db_set("ssl-identity", blob_str(&fn), 0); |
| 205 | blob_reset(&fn); |
| 206 | } |
| 207 | db_unprotect(PROTECT_CONFIG); |
| 208 | db_multi_exec( |
| 209 | "REPLACE INTO config(name,value,mtime)" |
| 210 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -199,11 +199,13 @@ | |
| 199 | if( g.zSSLIdentity!=0 ){ |
| 200 | /* If the --ssl-identity option was specified, store it as a setting */ |
| 201 | Blob fn; |
| 202 | blob_zero(&fn); |
| 203 | file_canonical_name(g.zSSLIdentity, &fn, 0); |
| 204 | db_unprotect(PROTECT_ALL); |
| 205 | db_set("ssl-identity", blob_str(&fn), 0); |
| 206 | db_protect_pop(); |
| 207 | blob_reset(&fn); |
| 208 | } |
| 209 | db_unprotect(PROTECT_CONFIG); |
| 210 | db_multi_exec( |
| 211 | "REPLACE INTO config(name,value,mtime)" |
| 212 |