diff options
author | June McEnroe <june@causal.agency> | 2021-08-21 16:15:13 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-08-21 16:15:13 -0400 |
commit | 78afc824b486c370f55a200b659b2b7a82b92a0d (patch) | |
tree | d983027cc445a59f163f20d9ccbcdb9b5be81ea0 | |
parent | Zero local-key memory before freeing it (diff) | |
download | pounce-78afc824b486c370f55a200b659b2b7a82b92a0d.tar.gz pounce-78afc824b486c370f55a200b659b2b7a82b92a0d.zip |
Don't create new tls_server(3), just reconfigure
-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(); |