Fix operator priority in ProxyConnectionFactory

Due to shift operations taking less precedence over addition the expression was parsed in an unintended way.

With this change the intention is made more clear and the intended order of calculations (shift the single byte values into some variable) is actually implemented.

Signed-off-by: Benny Baumann <BenBE@geshi.org>
This commit is contained in:
BenBE 2018-04-25 08:56:27 +02:00 committed by Benny Baumann
parent fbbf5d2d2d
commit f7faf392b2
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ public class ProxyConnectionFactory extends AbstractConnectionFactory
{ {
int i=0; int i=0;
int client = 0xff & value[i++]; int client = 0xff & value[i++];
int verify = (0xff & value[i++])<<24 + (0xff & value[i++])<<16 + (0xff & value[i++])<<8 + (0xff&value[i++]); int verify = ((0xff & value[i++])<<24) + ((0xff & value[i++])<<16) + ((0xff & value[i++])<<8) + (0xff&value[i++]);
while(i<value.length) while(i<value.length)
{ {
int ssl_type = 0xff & value[i++]; int ssl_type = 0xff & value[i++];