fix: 'hf iclass lookup' - exit when failed to load dictionary file

This commit is contained in:
iceman1001 2018-02-08 10:32:14 +01:00
parent de631c32ac
commit 30e9395590

View file

@ -2240,7 +2240,7 @@ int LoadDictionaryKeyFile( char* filename, uint8_t **keys, int *keycnt) {
if ( !(f = fopen( filename , "r")) ) {
PrintAndLog(_RED_([!]) " file: %s: not found or locked.", filename);
return 0;
return 1;
}
while( fgets(buf, sizeof(buf), f) ){