Skip to content
Snippets Groups Projects
Commit 2575e227 authored by Matt Johnston's avatar Matt Johnston
Browse files

Don't need to burn the payload buffer since process-packet.c does it

--HG--
extra : convert_revision : 12619953d6d88a1b8b0afc4dd5f6e0e2f8b324a0
parent 7ed5870e
No related merge requests found
...@@ -80,10 +80,6 @@ void svr_auth_password() { ...@@ -80,10 +80,6 @@ void svr_auth_password() {
password = buf_getstring(ses.payload, &passwordlen); password = buf_getstring(ses.payload, &passwordlen);
/* clear the buffer containing the password */
buf_incrpos(ses.payload, -passwordlen - 4);
m_burn(buf_getptr(ses.payload, passwordlen + 4), passwordlen + 4);
/* the first bytes of passwdcrypt are the salt */ /* the first bytes of passwdcrypt are the salt */
testcrypt = crypt((char*)password, passwdcrypt); testcrypt = crypt((char*)password, passwdcrypt);
m_burn(password, passwordlen); m_burn(password, passwordlen);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment