mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUACAMOLE-422: Correct logic error in atLeast() - this version should be compared against otherVersion.
				
					
				
			This commit is contained in:
		| @@ -142,11 +142,11 @@ public class GuacamoleProtocolVersion { | ||||
|          | ||||
|         // If major is not the same, return inequality | ||||
|         if (major != otherVersion.getMajor()) | ||||
|             return this.major > major; | ||||
|             return this.major > otherVersion.getMajor(); | ||||
|          | ||||
|         // Major is the same, but minor is not, return minor inequality | ||||
|         if (minor != otherVersion.getMinor()) | ||||
|             return this.minor > minor; | ||||
|             return this.minor > otherVersion.getMinor(); | ||||
|          | ||||
|         // Major and minor are equal, so return patch inequality | ||||
|         return patch >= otherVersion.getPatch(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user