Fix possible crash in SASL Blowfish mech
This commit is contained in:
parent
c9b63f7f9b
commit
c0769397d5
@ -1671,7 +1671,7 @@ encode_sasl_pass_blowfish (char *user, char *pass, char *data)
|
|||||||
memset (encrypted_pass, 0, pass_len);
|
memset (encrypted_pass, 0, pass_len);
|
||||||
plain_pass = (char*)malloc (pass_len);
|
plain_pass = (char*)malloc (pass_len);
|
||||||
memset (plain_pass, 0, pass_len);
|
memset (plain_pass, 0, pass_len);
|
||||||
memcpy (plain_pass, pass, pass_len);
|
memcpy (plain_pass, pass, strlen(pass));
|
||||||
out_ptr = (char*)encrypted_pass;
|
out_ptr = (char*)encrypted_pass;
|
||||||
in_ptr = (char*)plain_pass;
|
in_ptr = (char*)plain_pass;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user