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 | e3e0ec25e67308de314aa61852905ee42aa2c8fe (patch) | |
tree | a3ea29a79a047b33fc08d5d2a9479c0627526818 /source/smbd/session.c | |
parent | 6138be7e4a5eb57af4a024d749cb68168b8589fb (diff) | |
download | samba-e3e0ec25e67308de314aa61852905ee42aa2c8fe.tar.gz samba-e3e0ec25e67308de314aa61852905ee42aa2c8fe.tar.xz samba-e3e0ec25e67308de314aa61852905ee42aa2c8fe.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
Diffstat (limited to 'source/smbd/session.c')
-rw-r--r-- | source/smbd/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/session.c b/source/smbd/session.c index a3334a353e3..05b1026f41f 100644 --- a/source/smbd/session.c +++ b/source/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; |