]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: Coverity, logical vs bitwise operator, remove the extra '&' for it to become...
authoriceman1001 <iceman@iuse.se>
Tue, 12 Jan 2016 22:42:42 +0000 (23:42 +0100)
committericeman1001 <iceman@iuse.se>
Tue, 12 Jan 2016 22:42:42 +0000 (23:42 +0100)
client/cmdhfmfdes.c

index b8db1cab960950e04dae389edb5cc9a9e6a508ac..9ab5a4af21cefa99a2e1e3eba4fab44ac081e410 100644 (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)";
Impressum, Datenschutz