Clear the temporary password buffer before returning. - susmb - mounting of SMB/CIFS shares via FUSE
(HTM) git clone git://git.codemadness.org/susmb
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit e0773f60e1fbeda2e34d77b43e6eb4758728fd73
(DIR) parent 1e80c5eb0c78bc1824bcdb92010b6a3d25b0fa32
(HTM) Author: Geoff Johnstone <geoffSHEEP.johnstoneFROG@googlemail.com>
Date: Thu, 26 Jun 2008 21:43:23 +0100
Clear the temporary password buffer before returning.
Diffstat:
M password.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/password.c b/password.c
@@ -72,6 +72,8 @@ bool password_read (char **out)
}
*out = xstrdup (buff);
+ memset (buff, 0, sizeof (buff));
+
DEBUG (fprintf (stderr, "Password: %s\n", *out));
return (NULL != *out);