diff options
Diffstat (limited to 'common/rfb/SSecurityPlain.cxx')
-rw-r--r-- | common/rfb/SSecurityPlain.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/SSecurityPlain.cxx b/common/rfb/SSecurityPlain.cxx index f577c0d6..6ae19557 100644 --- a/common/rfb/SSecurityPlain.cxx +++ b/common/rfb/SSecurityPlain.cxx @@ -84,7 +84,7 @@ bool SSecurityPlain::processMsg() throw AuthFailureException("No password validator configured"); if (state == 0) { - if (!is->checkNoWait(8)) + if (!is->hasData(8)) return false; ulen = is->readU32(); @@ -99,7 +99,7 @@ bool SSecurityPlain::processMsg() } if (state == 1) { - if (!is->checkNoWait(ulen + plen)) + if (!is->hasData(ulen + plen)) return false; state = 2; pw = new char[plen + 1]; |