summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-10-09 14:02:59 +0000
committerLuke Leighton <lkcl@samba.org>1998-10-09 14:02:59 +0000
commit0b45c08ffad6f8b12c6fb2b184d3b5d52177cabe (patch)
treecb02a69e2b0858927f6f2ff64be02b6fef592ffb
parenta2898af463132147cbe19b18585c793960cb39ee (diff)
downloadsamba-0b45c08ffad6f8b12c6fb2b184d3b5d52177cabe.tar.gz
anders blomdell spotted an unititialised fstring causing strlen to go
awry (ascii_p16)
-rw-r--r--source/passdb/smbpass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/passdb/smbpass.c b/source/passdb/smbpass.c
index 0347df4ee9e..35de214425e 100644
--- a/source/passdb/smbpass.c
+++ b/source/passdb/smbpass.c
@@ -868,6 +868,7 @@ static BOOL mod_smbfilepwd_entry(struct smb_passwd* pwd, BOOL override)
fstrcpy(&ascii_p16[33], "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
}
ascii_p16[65] = ':';
+ ascii_p16[66] = '\0'; /* null-terminate the string so that strlen works */
/* Add on the account info bits and the time of last
password change. */