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

This commit is contained in:
Nick Couchman
2018-02-03 23:24:25 -05:00
parent 0729fa09cd
commit ef6d0c6a53

View File

@@ -290,7 +290,7 @@ public class RadiusConnectionService {
return null; return null;
} }
if (state == null || state.length < 1) { if (state == null || state.length == 0) {
logger.error("Challenge/response to RADIUS requires a prior state."); logger.error("Challenge/response to RADIUS requires a prior state.");
return null; return null;
} }