From aa7b199a8a15323e16e009824b2c3fc50b2bde15 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 28 Dec 2019 15:10:34 +0100 Subject: [PATCH] Fix crash when reading configuration file with a password that is in the old and unsupported unrealircd-specific md5/sha1 style. --- src/auth.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/auth.c b/src/auth.c index aedcefb03..d7f3300e9 100644 --- a/src/auth.c +++ b/src/auth.c @@ -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; }