comparison 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
comparison
equal deleted inserted replaced
117:e0acad552a92 120:18b261b1dea2
78 return; 78 return;
79 } 79 }
80 80
81 password = buf_getstring(ses.payload, &passwordlen); 81 password = buf_getstring(ses.payload, &passwordlen);
82 82
83 /* clear the buffer containing the password */
84 buf_incrpos(ses.payload, -passwordlen - 4);
85 m_burn(buf_getptr(ses.payload, passwordlen + 4), passwordlen + 4);
86
87 /* the first bytes of passwdcrypt are the salt */ 83 /* the first bytes of passwdcrypt are the salt */
88 testcrypt = crypt((char*)password, passwdcrypt); 84 testcrypt = crypt((char*)password, passwdcrypt);
89 m_burn(password, passwordlen); 85 m_burn(password, passwordlen);
90 m_free(password); 86 m_free(password);
91 87