diff options
author | Runxi Yu <me@runxiyu.org> | 2024-08-08 08:00:00 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-08-08 08:00:00 +0800 |
commit | 33d57d284fe7d786fdedcb247f265a5544d2dd41 (patch) | |
tree | c11675efa50f79ab29d9299b7c1492999f2201cb | |
parent | Makefile: complain when config.mk is not found (diff) | |
download | pouncerx-master.tar.gz pouncerx-master.zip |
-rw-r--r-- | local.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -52,8 +52,9 @@ int localConfig( struct tls_config *config = tls_config_new(); if (!config) errx(EX_SOFTWARE, "tls_config_new"); - int error; + int error = -1; char buf[PATH_MAX]; + for (int i = 0; configPath(buf, sizeof(buf), cert, i); ++i) { error = tls_config_set_cert_file(config, buf); if (!error) break; |