git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2898af
)
anders blomdell spotted an unititialised fstring causing strlen to go
author
Luke Leighton
<lkcl@samba.org>
Fri, 9 Oct 1998 14:02:59 +0000
(14:02 +0000)
committer
Luke Leighton
<lkcl@samba.org>
Fri, 9 Oct 1998 14:02:59 +0000
(14:02 +0000)
awry (ascii_p16)
source/passdb/smbpass.c
patch
|
blob
|
history
diff --git
a/source/passdb/smbpass.c
b/source/passdb/smbpass.c
index 0347df4ee9e13d8f6ef6208fac8bcab1a81b63e8..35de214425e2012e0b7bbeeff74c3f2041706d5e 100644
(file)
--- 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. */