diff options
author | June McEnroe <june@causal.agency> | 2021-08-21 16:08:55 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-08-21 16:08:55 -0400 |
commit | 4c4776b7a160e146de351c0706927d3224449751 (patch) | |
tree | 5b9dc0173dc7a19f9412fed08804476d53a13e90 | |
parent | Avoid overwriting manual AWAY messages (diff) | |
download | pounce-4c4776b7a160e146de351c0706927d3224449751.tar.gz pounce-4c4776b7a160e146de351c0706927d3224449751.zip |
Zero local-key memory before freeing it
Diffstat (limited to '')
-rw-r--r-- | local.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/local.c b/local.c index ff879c8..a7f4abb 100644 --- a/local.c +++ b/local.c @@ -91,6 +91,7 @@ void localConfig(FILE *cert, FILE *priv, FILE *ca, bool require) { if (error) { errx(EX_CONFIG, "tls_config_set_key_mem: %s", tls_config_error(config)); } + explicit_bzero(buf, len); free(buf); if (ca) { |