diff options
Diffstat (limited to 'common/rfb/SSecurityRSAAES.cxx')
-rw-r--r-- | common/rfb/SSecurityRSAAES.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/SSecurityRSAAES.cxx b/common/rfb/SSecurityRSAAES.cxx index 46b66ca9..39b286de 100644 --- a/common/rfb/SSecurityRSAAES.cxx +++ b/common/rfb/SSecurityRSAAES.cxx @@ -540,9 +540,9 @@ void SSecurityRSAAES::writeSubtype() bool SSecurityRSAAES::readCredentials() { - rais->setRestorePoint(); if (!rais->hasData(1)) return false; + rais->setRestorePoint(); uint8_t lenUsername = rais->readU8(); if (!rais->hasDataOrRestore(lenUsername + 1)) return false; |