mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
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:
4
packet.c
4
packet.c
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user