Mercurial > dropbear
comparison packet.c @ 429:ce14fab86732 channel-fix
propagate from branch 'au.asn.ucc.matt.dropbear' (head 6cb7793493d92968e09b5dea21d71ded5811d21f)
to branch 'au.asn.ucc.matt.dropbear.channel-fix' (head 275bf5c6b71ca286c29733b9e38bac40eeb06a40)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 12 Feb 2007 13:38:18 +0000 |
parents | 695413c59b6a |
children | 9c61e7af0156 |
comparison
equal
deleted
inserted
replaced
428:fd1f05639ed4 | 429:ce14fab86732 |
---|---|
444 ses.writepayload->len); | 444 ses.writepayload->len); |
445 buf_incrwritepos(clearwritebuf, ses.writepayload->len); | 445 buf_incrwritepos(clearwritebuf, ses.writepayload->len); |
446 } | 446 } |
447 | 447 |
448 /* finished with payload */ | 448 /* finished with payload */ |
449 buf_burn(ses.writepayload); /* XXX This is probably a good idea, and isn't | |
450 _that_ likely to hurt performance too badly. | |
451 Buffers can have cleartext passwords etc, or | |
452 other sensitive data */ | |
453 buf_setpos(ses.writepayload, 0); | 449 buf_setpos(ses.writepayload, 0); |
454 buf_setlen(ses.writepayload, 0); | 450 buf_setlen(ses.writepayload, 0); |
455 | 451 |
456 /* length of padding - packet length must be a multiple of blocksize, | 452 /* length of padding - packet length must be a multiple of blocksize, |
457 * with a minimum of 4 bytes of padding */ | 453 * with a minimum of 4 bytes of padding */ |