You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2018/02/05 03:09:27 UTC

[5/8] guacamole-client git commit: GUACAMOLE-197: Check for empty byte array in more sane manner.

GUACAMOLE-197: Check for empty byte array in more sane manner.


Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/ef6d0c6a
Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/ef6d0c6a
Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/ef6d0c6a

Branch: refs/heads/master
Commit: ef6d0c6a5386e70cbca242886d17953eeaa2591c
Parents: 0729fa0
Author: Nick Couchman <vn...@apache.org>
Authored: Sat Feb 3 23:24:25 2018 -0500
Committer: Nick Couchman <vn...@apache.org>
Committed: Sat Feb 3 23:24:25 2018 -0500

----------------------------------------------------------------------
 .../org/apache/guacamole/auth/radius/RadiusConnectionService.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/ef6d0c6a/extensions/guacamole-auth-radius/src/main/java/org/apache/guacamole/auth/radius/RadiusConnectionService.java
----------------------------------------------------------------------
diff --git a/extensions/guacamole-auth-radius/src/main/java/org/apache/guacamole/auth/radius/RadiusConnectionService.java b/extensions/guacamole-auth-radius/src/main/java/org/apache/guacamole/auth/radius/RadiusConnectionService.java
index 8355557..ec82a63 100644
--- a/extensions/guacamole-auth-radius/src/main/java/org/apache/guacamole/auth/radius/RadiusConnectionService.java
+++ b/extensions/guacamole-auth-radius/src/main/java/org/apache/guacamole/auth/radius/RadiusConnectionService.java
@@ -290,7 +290,7 @@ public class RadiusConnectionService {
             return null;
         }
 
-        if (state == null || state.length < 1) {
+        if (state == null || state.length == 0) {
             logger.error("Challenge/response to RADIUS requires a prior state.");
             return null;
         }