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
-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) {
ow=1'>Use $PWD in html.sh to pass absolute path to manJune McEnroe 2019-02-20Factor out html.sh and produce html for all sourcesJune McEnroe 2019-02-20Add Dirk Gently's Holistic Detective AgencyJune McEnroe 2019-02-20Move /opt/pkg after /usr in PATHJune McEnroe 2019-02-20Set man_hard_wrap in nvimJune McEnroe 2019-02-18Use hi -o anchor in upJune McEnroe 2019-02-18Don't match nested parentheses in Tag for CJune McEnroe 2019-02-18Match whitespace between * [] {}June McEnroe 2019-02-18Fix function-like #define regexJune McEnroe 2019-02-18Match Tag in RustJune McEnroe 2019-02-18Match sh functions as TagJune McEnroe 2019-02-18Match Sh and Ss as Tag in mdocJune McEnroe 2019-02-18Match statics and typedefs as TagJune McEnroe 2019-02-18Clean up htmlHeaderJune McEnroe 2019-02-18Remove hi line numberingJune McEnroe 2019-02-18Add Tag class to hiJune McEnroe 2019-02-17Generate HTML with hi -n -f html -o anchorJune McEnroe 2019-02-17Add hi -f html -o anchor for line number linksJune McEnroe 2019-02-17Simplify temp trap in upJune McEnroe 2019-02-17Add line numbers to hiJune McEnroe 2019-02-17Always split spans after newlinesJune McEnroe 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe