Commit Diff


commit - 2afa7c55d857b24c3b9e6db2a149cffd5442a050
commit + 5808d63e66935a6c2883142701a60ec97cc57a7b
blob - 2f0cbccc62125dd5fa566891a54579a92f1d5580
blob + 1d699aa292671c30eb27d3053b744f25c217db9b
--- xc.c
+++ xc.c
@@ -121,6 +121,8 @@ main(int argc, char **argv)
 	xmpp_conn_set_jid(conn, jid);
 	xmpp_conn_set_pass(conn, password);
 
+	explicit_bzero(passbuf, sizeof(passbuf));
+
 	if (xmpp_connect_client(conn, host, port, conn_handler, ctx) ==
 	    XMPP_EOK) {
 		xmpp_run(ctx);