GUACAMOLE-197: Check for empty byte array in more sane manner.
This commit is contained in:
1 parent
0729fa09cd
commit
ef6d0c6a53
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user