Merge pull request #13638 from sum2012/AuCtx_minor

Fix AuCheckStreamDataNeeded function
This commit is contained in:
Henrik Rydgård 2020-11-08 16:05:33 +01:00 committed by GitHub
commit 0193fd278d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -394,7 +394,7 @@ u32 AuCtx::AuSetLoopNum(int loop)
// return 1 to read more data stream, 0 don't read
int AuCtx::AuCheckStreamDataNeeded() {
// If we would ask for bytes, then some are needed.
if (AuStreamBytesNeeded() != 0) {
if (AuStreamBytesNeeded() > 0) {
return 1;
}
return 0;