about 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);