]> source.dussan.org Git - tigervnc.git/commit
Fix checkNoWait logic in SSecurityPlain.
authorMichal Srb <michalsrb@gmail.com>
Wed, 29 Mar 2017 14:00:30 +0000 (17:00 +0300)
committerMichal Srb <michalsrb@gmail.com>
Thu, 30 Mar 2017 00:25:02 +0000 (03:25 +0300)
commit9801c5efcf8c1774d9c807ebd5d27ac7049ad993
treecd98032c253310d920f6ccf2074d17e7534bb649
parentd71508b94bd1c6f0d8be89aa559a8a7de48f7f3f
Fix checkNoWait logic in SSecurityPlain.

Currently it proceeds only if there aren't enough data in queue and then it blocks waiting.
Also the required amount to receive from network is (ulen + plen), not (ulen + plen + 2).

This allowed not authenticated clients to deny service to everyone.
common/rfb/SSecurityPlain.cxx