summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/passdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 2ba856e19b..cc4a8e5c55 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -874,6 +874,8 @@ static BOOL read_sid_from_file(int fd, char *sid_file)
{
fstring fline;
+ memset(fline, '\0', sizeof(fline));
+
if(read(fd, fline, sizeof(fline) -1 ) < 0) {
DEBUG(0,("read_sid_from_file: unable to read file %s. Error was %s\n",
sid_file, strerror(errno) ));