summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-21 16:26:08 -0500
committerJune McEnroe <june@causal.agency>2019-11-21 16:26:08 -0500
commit407adf0ddd1be0b80de206d012b944b8113d02d2 (patch)
treeeb3d6cccf90ed594f07ccfcb8013d9438aa2c9ce
parentUse a static buffer for plainBase64 (diff)
downloadpounce-407adf0ddd1be0b80de206d012b944b8113d02d2.tar.gz
pounce-407adf0ddd1be0b80de206d012b944b8113d02d2.zip
Zero temporary SASL PLAIN buffer
Diffstat (limited to '')
-rw-r--r--state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/state.c b/state.c
index 09156ff..154e16d 100644
--- a/state.c
+++ b/state.c
@@ -60,6 +60,7 @@ void stateLogin(
 				buf[1 + i] = (plain[i] == ':' ? 0 : plain[i]);
 			}
 			base64(plainBase64, buf, len);
+			explicit_bzero(buf, sizeof(buf));
 		}
 	}
 	serverFormat("NICK %s\r\n", nick);
tle='2020-04-20 10:34:56 -0400'>2020-04-20Use . as ${LDLIBS.$@} separatorJune McEnroe 2020-04-05Error on invalid ISUPPORT values 1.2June McEnroe 2020-04-05Only set RCS on FreeBSDJune McEnroe 2020-04-05Log bans and unbansJune McEnroe 2020-04-05Parse mode types from ISUPPORTJune McEnroe 2020-04-05Add unscoop matchers for ban/unban eventsJune McEnroe 2020-04-05Check unscoop regexps with make testJune McEnroe 2020-04-05Add unscoop -n flag for checking regexpsJune McEnroe 2020-04-05Add Ban and Unban event typesJune McEnroe 2020-04-02Update styleJune McEnroe 2020-03-31Update unscoop catgirl matchersJune McEnroe 2020-03-31Fix writing verbose to stderrJune McEnroe 2020-03-02Include <>/-/* around nicks in scoop coloring 1.1June McEnroe 2020-03-02Replace .mk files with configure scriptJune McEnroe 2020-02-28Implement the causal.agency/consumer capabilityJune McEnroe 2020-02-22Include <>/-/* around nicks in coloringJune McEnroe 2020-02-22Use (almost) the full range of IRC colors for nicksJune McEnroe