diff options
author | Michael Vetter <jubalh@iodoru.org> | 2022-04-28 19:33:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 19:33:23 +0200 |
commit | 27f25172e9dd70c0df518530e1b5e82391b1b7d7 (patch) | |
tree | e50dd97f419c2a5ad3e5efd3ff5c4cab70e849f7 /src/tools/http_download.c | |
parent | 0dd0193ebaf1e016a2cfbaec9acdcc93c62e692a (diff) | |
parent | 066df7f741848a2c594a5cbb05cef5af9075d5a1 (diff) | |
download | profani-tty-27f25172e9dd70c0df518530e1b5e82391b1b7d7.tar.gz |
Merge branch 'master' into add_stamp_settings
Diffstat (limited to 'src/tools/http_download.c')
-rw-r--r-- | src/tools/http_download.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/http_download.c b/src/tools/http_download.c index 57e36e61..bbbccce1 100644 --- a/src/tools/http_download.c +++ b/src/tools/http_download.c @@ -128,7 +128,7 @@ http_file_get(void* userdata) char* cert_path = prefs_get_string(PREF_TLS_CERTPATH); gchar* cafile = cafile_get_name(); ProfAccount* account = accounts_get_account(session_get_account_name()); - gboolean insecure = strcmp(account->tls_policy, "trust") == 0; + gboolean insecure = account->tls_policy && strcmp(account->tls_policy, "trust") == 0; account_free(account); pthread_mutex_unlock(&lock); |