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
-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);
> 2021-08-22Add ISC license headerJune McEnroe 2021-08-22Update to Linux man-pages 5.12Štěpán Němec 2021-06-21Add manuals for macOS 11.3June McEnroe 2021-05-08Update to OpenBSD 6.9June McEnroe 2021-04-26Update to Linux man-pages 5.11June McEnroe 2021-04-26Update to FreeBSD 13.0June McEnroe 2021-01-27Completely rewrite how manuals are fetched and installedJune McEnroe 2020-12-14Update to man-pages-posix 2017-aJune McEnroe 2020-12-14Update to OpenBSD 6.8June McEnroe 2020-12-14Update to NetBSD 9.1June McEnroe 2020-12-14Update to man-pages 5.09June McEnroe 2020-12-14Update to FreeBSD 12.2June McEnroe 2020-06-08Update to OpenBSD 6.7June McEnroe 2020-05-04Add hack for macOS to search extra man sectionsJune McEnroe 2020-05-04Don't clear MANSECTJune McEnroe