about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-08-21 16:08:55 -0400
committerJune McEnroe <june@causal.agency>2021-08-21 16:08:55 -0400
commit4c4776b7a160e146de351c0706927d3224449751 (patch)
tree5b9dc0173dc7a19f9412fed08804476d53a13e90
parentAvoid overwriting manual AWAY messages (diff)
downloadpounce-4c4776b7a160e146de351c0706927d3224449751.tar.gz
pounce-4c4776b7a160e146de351c0706927d3224449751.zip
Zero local-key memory before freeing it
Diffstat (limited to '')
-rw-r--r--local.c1
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) {