diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-08 16:44:11 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-08 16:44:11 +0000 |
commit | 2a2fdc168c1ed2148ccd8ffc76497e39cb800082 (patch) | |
tree | 346d7371fcaddef6dcc0ad662ea5da31712130c5 /svr-authpasswd.c | |
parent | 418f3b4042dafddc39c54b1456fb9faff31b9e17 (diff) |
burn the buffer a bit earlier
--HG--
extra : convert_revision : 1f069f6a8a2ecee6f2e22b51751b73982606accb
Diffstat (limited to 'svr-authpasswd.c')
-rw-r--r-- | svr-authpasswd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-authpasswd.c b/svr-authpasswd.c index cc9e838..7249553 100644 --- a/svr-authpasswd.c +++ b/svr-authpasswd.c @@ -87,6 +87,8 @@ void svr_auth_password() { /* the first bytes of passwdcrypt are the salt */ testcrypt = crypt((char*)password, passwdcrypt); + m_burn(password, passwordlen); + m_free(password); if (strcmp(testcrypt, passwdcrypt) == 0) { /* successful authentication */ @@ -101,8 +103,6 @@ void svr_auth_password() { send_msg_userauth_failure(0, 1); } - m_burn(password, passwordlen); - m_free(password); } #endif /* DROPBEAR_PASSWORD_AUTH */ |