summaryrefslogtreecommitdiff
path: root/source3/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
commitc3bf153c0c0c7c1c0f1d012147fb4c061b2be324 (patch)
treee769ecf2e8099a315da0bc6231ae7fc417100023 /source3/include/smb.h
parentce4d3cd4fa5b98187f63c2b48e8d31be16090df5 (diff)
downloadsamba-c3bf153c0c0c7c1c0f1d012147fb4c061b2be324.tar.gz
samba-c3bf153c0c0c7c1c0f1d012147fb4c061b2be324.tar.bz2
samba-c3bf153c0c0c7c1c0f1d012147fb4c061b2be324.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? (This used to be commit 1c13110873e456748dc09fd51749f664643fe888)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index aa1356d821..c53f0d21e3 100644
--- a/source3/include/smb.h
+++ b/source3/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 */