summaryrefslogtreecommitdiffstats
path: root/source/include/smb.h
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-04-25 22:12:13 +0000
committerGerald Carter <jerry@samba.org>2001-04-25 22:12:13 +0000
commit1c13110873e456748dc09fd51749f664643fe888 (patch)
tree2bfe7fb5486c32b2c1fcd6b95baae323635622dc /source/include/smb.h
parentc6f25e84d3e15319d263386c101727d787cf0679 (diff)
downloadsamba-1c13110873e456748dc09fd51749f664643fe888.tar.gz
samba-1c13110873e456748dc09fd51749f664643fe888.tar.xz
samba-1c13110873e456748dc09fd51749f664643fe888.zip
converted the passdb smbpasswd implementation to using talloc
for memory allocation. This fixes a long standing seg fault (i knew i would get around to it one day :) ) Tested with NT4 and Win2k. Needs a little more testing with the "create the machine account on the fly" code for NT4. Simo, this is probably going to break the tdb passdb code. Can you look at that when you get a chance and see what you think?
Diffstat (limited to 'source/include/smb.h')
-rw-r--r--source/include/smb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/include/smb.h b/source/include/smb.h
index aa1356d821a..c53f0d21e3b 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -644,8 +644,8 @@ typedef struct
typedef struct sam_passwd
{
- BOOL own_memory; /* do we own the memory allocated for the
- pointers in this struct? */
+ TALLOC_CTX *mem_ctx; /* used for all dynamically allocated
+ memory in this struct*/
time_t logon_time; /* logon time */
time_t logoff_time; /* logoff time */