Fix TCToken validation for missing PSK case
@@ -208,10 +208,7 @@ public class TCTokenVerifier {
if ((checkEmpty(proto) && checkEmpty(psp))) {
assertSameChannel("ServerAddress", token.getServerAddress());
return;
- } else if ((! checkEmpty(proto)) && (! checkEmpty(psp)) && checkEmpty(psp.getPSK()) && ! token.isInvalidPSK()) {
- assertSameChannel("ServerAddress", token.getServerAddress());
- return;
- } else if ((! checkEmpty(proto)) && checkEmpty(psp)) {
+ } else if ((! checkEmpty(proto)) && checkEmpty(psp) && ! token.isInvalidPSK()) {
assertSameChannel("ServerAddress", token.getServerAddress());
return;
}
