MariaDB and MySQL Authentication Bypass Exploit
JohnBert writes "A security bug in MariaDB and MySQL has been revealed, allowing a known username and password to access the master user table of a MySQL server and dump it into a locally-stored file. By using a tool like John the Ripper, this file can be easily cracked to reveal text passwords that can provide further access. By committing a threaded brute-force module that abuses the authentication bypass flaw to automatically dump the password database, you can access the database using the cracked password hashes even if the authentication bypass vulnerability is fixed."
And that is why we use fail2ban.
They are casting the result of int strcmp to my_bool, which they have defined as typedef char my_bool.
Since int is bigger than char, you have really lots of ints than can be 0 when casted to char.