GUACAMOLE-422: Correct logic error in atLeast() - this version should be compared against otherVersion.

This commit is contained in:
Michael Jumper
2019-06-08 12:48:01 -07:00
parent 9d1b264417
commit 8aff7b6f5b

View File

@@ -142,11 +142,11 @@ public class GuacamoleProtocolVersion {
// If major is not the same, return inequality // If major is not the same, return inequality
if (major != otherVersion.getMajor()) if (major != otherVersion.getMajor())
return this.major > major; return this.major > otherVersion.getMajor();
// Major is the same, but minor is not, return minor inequality // Major is the same, but minor is not, return minor inequality
if (minor != otherVersion.getMinor()) if (minor != otherVersion.getMinor())
return this.minor > minor; return this.minor > otherVersion.getMinor();
// Major and minor are equal, so return patch inequality // Major and minor are equal, so return patch inequality
return patch >= otherVersion.getPatch(); return patch >= otherVersion.getPatch();