1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 02:23:12 +02:00

Fix crash when reading configuration file with a password that is in

the old and unsupported unrealircd-specific md5/sha1 style.
This commit is contained in:
Bram Matthys
2019-12-28 15:10:34 +01:00
parent 63b77796ed
commit aa7b199a8a
-6
View File
@@ -124,12 +124,6 @@ int Auth_AutoDetectHashType(char *hash)
if (bits <= 0)
return AUTHTYPE_UNIXCRYPT; /* decode failed. likely some other crypt() type. */
/* These are for two old/ancient UnrealIRCd types ('md5' and 'sha1').
* This code is there to make sure they don't end up as AUTHTYPE_UNIXCRYPT...
*/
if ((bits == 128) || (bits == 160))
return AUTHTYPE_INVALID;
/* else it's likely some other crypt() type */
return AUTHTYPE_UNIXCRYPT;
}