* setlsapwd.cc (setlsapwd): Explicitely erase password buffer content

after usage.
This commit is contained in:
Corinna Vinschen 2008-12-15 17:39:39 +00:00
parent d08afb78d1
commit 85fd77a145
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-12-15 Corinna Vinschen <corinna@vinschen.de>
* setlsapwd.cc (setlsapwd): Explicitely erase password buffer content
after usage.
2008-12-15 Corinna Vinschen <corinna@vinschen.de>
* fhandler_registry.cc (fhandler_registry::exists): Handle EACCES.

View File

@ -84,7 +84,10 @@ setlsapwd (const char *passwd)
__seterrno_from_nt_status (status);
#endif
if (data_buf)
free (data_buf);
{
memset (data.Buffer, 0, data.Length);
free (data_buf);
}
}
return ret;
}