FIX: Coverity, logical vs bitwise operator, remove the extra '&' for it to become bitwise.

This commit is contained in:
iceman1001 2016-01-12 23:42:42 +01:00
parent 95d96ea38a
commit 33db73516d

View file

@ -352,7 +352,7 @@ void GetKeySettings( uint8_t *aid){
PrintAndLog(" Can't read Application Master key settings");
} else {
// Access rights.
uint8_t rights = (resp.d.asBytes[3] >> 4 && 0xff);
uint8_t rights = (resp.d.asBytes[3] >> 4 & 0xff);
switch (rights){
case 0x00:
str = "AMK authentication is necessary to change any key (default)";