diff options
Diffstat (limited to 'local.c')
-rw-r--r-- | local.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/local.c b/local.c index a7f4abb..92220c4 100644 --- a/local.c +++ b/local.c @@ -71,8 +71,7 @@ static byte *readFile(size_t *len, FILE *file) { } void localConfig(FILE *cert, FILE *priv, FILE *ca, bool require) { - tls_free(server); - server = tls_server(); + if (!server) server = tls_server(); if (!server) errx(EX_SOFTWARE, "tls_server"); struct tls_config *config = tls_config_new(); |