From: Fabian Keil Date: Tue, 27 Sep 2022 10:14:12 +0000 (+0200) Subject: Initialize ca-related defaults with strdup_or_die() X-Git-Tag: v_3_0_34~54 X-Git-Url: http://www.privoxy.org/gitweb/%22http:/i.j.b/static/gitweb.css?a=commitdiff_plain;h=59f4954652cfec7ce580c50543093bf96d0b7830;p=privoxy.git Initialize ca-related defaults with strdup_or_die() ... so errors aren't silently ignored. --- diff --git a/loadcfg.c b/loadcfg.c index f98e0841..6857fb46 100644 --- a/loadcfg.c +++ b/loadcfg.c @@ -634,12 +634,12 @@ struct configuration_spec * load_config(void) config->proxy_args = strdup_or_die(""); config->forwarded_connect_retries = 0; #ifdef FEATURE_HTTPS_INSPECTION - config->ca_password = strdup(""); - ca_cert_file = strdup("cacert.crt"); - ca_key_file = strdup("cakey.pem"); - ca_directory = strdup("./CA"); - trusted_cas_file = strdup("trustedCAs.pem"); - certificate_directory = strdup("./certs"); + config->ca_password = strdup_or_die(""); + ca_cert_file = strdup_or_die("cacert.crt"); + ca_key_file = strdup_or_die("cakey.pem"); + ca_directory = strdup_or_die("./CA"); + trusted_cas_file = strdup_or_die("trustedCAs.pem"); + certificate_directory = strdup_or_die("./certs"); #endif #ifdef FEATURE_CLIENT_TAGS