Differences From Artifact [e40c293a71]:
- File ssh.c — part of check-in [ea1538e924] at 2007-05-01 07:26:44 on branch trunk — Reindent the section that was marked `XXX The lines below should be reindented before this is committed'. Unfortunately not before it was committed, but you can't have everything :-) (user: simon size: 273505)
To Artifact [5d5032772a]:
- File ssh.c — part of check-in [b0ce384018] at 2007-06-30 13:17:12 on branch trunk — Tong Ho points out a missing ssh_pkt_ensure(). (user: simon size: 273577)
| ︙ | |||
1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 | 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 | + |
if (ssh->v1_compressing) {
unsigned char *compblk;
int complen;
zlib_compress_block(ssh->cs_comp_ctx,
pkt->data + 12, pkt->length - 12,
&compblk, &complen);
ssh_pkt_ensure(pkt, complen + 2); /* just in case it's got bigger */
memcpy(pkt->data + 12, compblk, complen);
sfree(compblk);
pkt->length = complen + 12;
}
ssh_pkt_ensure(pkt, pkt->length + 4); /* space for CRC */
pkt->length += 4;
|
| ︙ |