In SSH2, if decrypting the packet length gave us a negative value,
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 18 Aug 2002 09:10:17 +0000 (09:10 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 18 Aug 2002 09:10:17 +0000 (09:10 +0000)
commit717dc4839a39d4235793d152f39fd24e9be9d12b
tree2fd86ab5ee561656a901dc7705ef5927a3522fdc
parent941d39e21d83e4db76f354e6782e24b216027965
In SSH2, if decrypting the packet length gave us a negative value,
subsequent packet-receiver code would fail to notice anything was
wrong and segfault. Since this is clearly a silly packet length
anyway, we now explicitly reject it as a daft encryption error.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1852 cda61777-01e9-0310-a592-d414129be87e
ssh.c