diff svr-authpasswd.c @ 120:18b261b1dea2

Don't need to burn the payload buffer since process-packet.c does it
author Matt Johnston <matt@ucc.asn.au>
date Sun, 12 Sep 2004 05:53:48 +0000
parents b0316ce64e4b
children 364a75cfebab
line wrap: on
line diff
--- a/svr-authpasswd.c	Thu Sep 02 18:36:11 2004 +0000
+++ b/svr-authpasswd.c	Sun Sep 12 05:53:48 2004 +0000
@@ -80,10 +80,6 @@
 
 	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 */
 	testcrypt = crypt((char*)password, passwdcrypt);
 	m_burn(password, passwordlen);