X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/0622ea7168aa265db70be885fbffb050f29f0205..9a3a93a5c6a879994d61da8a146142a6555fd5d0:/ssh.c diff --git a/ssh.c b/ssh.c index 115c0ce6..b8abc5ba 100644 --- a/ssh.c +++ b/ssh.c @@ -724,6 +724,11 @@ static int ssh1_rdpkt(unsigned char **data, int *datalen) st->to_read -= st->chunk; } + if (cipher && detect_attack(pktin.data, st->biglen, NULL)) { + bombout(("Network attack (CRC compensation) detected!")); + crReturn(0); + } + if (cipher) cipher->decrypt(pktin.data, st->biglen);