Fossil SCM

Comparison typo.

linuxfood 2010-03-21 22:42 ssl_platform_fixes
Commit 624bc1c66283914f39e1a2f122b328863407dae7
1 file changed +1 -1
+1 -1
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -113,11 +113,11 @@
113113
to load the system store automatically */
114114
#endif
115115
system_store = db_get("certificate-bundle", detected_store);
116116
if(system_store != NULL) {
117117
SSL_CTX_load_verify_locations(sslCtx, system_store, NULL);
118
- if(detected_store != NULL) {
118
+ if(detected_store == NULL) {
119119
free(system_store);
120120
}
121121
}
122122
sslIsInit = 1;
123123
}
124124
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -113,11 +113,11 @@
113 to load the system store automatically */
114 #endif
115 system_store = db_get("certificate-bundle", detected_store);
116 if(system_store != NULL) {
117 SSL_CTX_load_verify_locations(sslCtx, system_store, NULL);
118 if(detected_store != NULL) {
119 free(system_store);
120 }
121 }
122 sslIsInit = 1;
123 }
124
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -113,11 +113,11 @@
113 to load the system store automatically */
114 #endif
115 system_store = db_get("certificate-bundle", detected_store);
116 if(system_store != NULL) {
117 SSL_CTX_load_verify_locations(sslCtx, system_store, NULL);
118 if(detected_store == NULL) {
119 free(system_store);
120 }
121 }
122 sslIsInit = 1;
123 }
124

Keyboard Shortcuts

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