1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 06:13:13 +02:00

Also fix enc_old using the previous commit's fix.

This commit is contained in:
Naram Qashat
2010-08-04 21:51:48 -04:00
parent 9da927889f
commit f78243b6b1
+2 -2
View File
@@ -170,7 +170,7 @@ static void MD5Update(MD5_CTX *context, const unsigned char *input, unsigned inp
/* MD5 finalization. Ends an MD5 message-digest operation, writing the
* the message digest and zeroizing the context.
*/
static void MD5Final(unsigned char digest[16], MD5_CTX *context)
static void MD5Final(unsigned char digest[17], MD5_CTX *context)
{
unsigned char bits[8];
unsigned index, padLen;
@@ -333,7 +333,7 @@ class EOld : public Module
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest)
{
MD5_CTX context;
char digest[33] = "", digest2[16] = "";
char digest[33] = "", digest2[17] = "";
Anope::string cpass;
int i;
Anope::string buf = "oldmd5:";