diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-04-02 03:46:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:03 -0500 |
commit | fb3835846ef89a632230ff808259dad1cddc05c0 (patch) | |
tree | 4e06c7b8a1b1d106a7c4e6e40a5d16b817c148cb /source3/smbd/session.c | |
parent | 074c1eb0ea84ec5d9ebb95f5604d8b0acee7d4ec (diff) | |
download | samba-fb3835846ef89a632230ff808259dad1cddc05c0.tar.gz samba-fb3835846ef89a632230ff808259dad1cddc05c0.tar.xz samba-fb3835846ef89a632230ff808259dad1cddc05c0.zip |
r22020: Make it more clear that both the vuser struct and it's contents are
talloc_free()'ed at the end of a session.
Rework the passwd cache code to use talloc_unlink and
talloc_reference, to more carefully manage the cache.
Andrew Bartlett
(This used to be commit e3e0ec25e67308de314aa61852905ee42aa2c8fe)
Diffstat (limited to 'source3/smbd/session.c')
-rw-r--r-- | source3/smbd/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/session.c b/source3/smbd/session.c index a3334a353e3..05b1026f41f 100644 --- a/source3/smbd/session.c +++ b/source3/smbd/session.c @@ -153,9 +153,9 @@ BOOL session_claim(user_struct *vuser) sessionid.id_str, sessionid.id_num); } - vuser->session_keystr = SMB_STRDUP(keystr); + vuser->session_keystr = talloc_strdup(vuser, keystr); if (!vuser->session_keystr) { - DEBUG(0, ("session_claim: strdup() failed for session_keystr\n")); + DEBUG(0, ("session_claim: talloc_strdup() failed for session_keystr\n")); return False; } return True; |