# HG changeset patch # User Chris Jones # Date 1380511983 21600 # Node ID eadf15a06ff59f033a5b26371b2137c5711fb211 # Parent 520ccb3e05d4201e24bbce2efabe06a57956eb59 Don't keep the password around after we've used it. diff -r 520ccb3e05d4 -r eadf15a06ff5 TODO.txt --- a/TODO.txt Sat Sep 28 13:15:32 2013 -0600 +++ b/TODO.txt Sun Sep 29 21:33:03 2013 -0600 @@ -5,8 +5,6 @@ Eliminate as many uses of Generic as possible. -Don't keep the password in memory once we're done with it. - Rename extension.StanzaHandlers to something like StanzaTypes. Think about how to gracefully shutdown. Probably have a Close() diff -r 520ccb3e05d4 -r eadf15a06ff5 xmpp/xmpp.go --- a/xmpp/xmpp.go Sat Sep 28 13:15:32 2013 -0600 +++ b/xmpp/xmpp.go Sun Sep 29 21:33:03 2013 -0600 @@ -221,6 +221,9 @@ return nil, err } + // Forget about the password, for paranoia's sake. + cl.password = "" + // Initialize the session. id := NextId() iq := &Iq{Header: Header{To: cl.Jid.Domain, Id: id, Type: "set",