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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user