Don't erase every buffer, it's too time consuming.

On systems where it matters encrypted swap should be enabled anyway.

--HG--
extra : convert_revision : 6cb7793493d92968e09b5dea21d71ded5811d21f
This commit is contained in:
Matt Johnston 2007-02-12 10:44:47 +00:00
parent 47e76de56a
commit c3941698cd
2 changed files with 0 additions and 5 deletions

View File

@ -446,10 +446,6 @@ void encrypt_packet() {
}
/* finished with payload */
buf_burn(ses.writepayload); /* XXX This is probably a good idea, and isn't
_that_ likely to hurt performance too badly.
Buffers can have cleartext passwords etc, or
other sensitive data */
buf_setpos(ses.writepayload, 0);
buf_setlen(ses.writepayload, 0);

View File

@ -119,7 +119,6 @@ void process_packet() {
recv_unimplemented();
out:
buf_burn(ses.payload); /* Clear the memory to avoid swapping it out */
buf_free(ses.payload);
ses.payload = NULL;