diff options
author | Volker Lendecke <vl@samba.org> | 2008-02-04 20:57:35 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-02-04 20:57:49 +0100 |
commit | 2762b9a97582b9b28fd5985ba8e3d0299126820e (patch) | |
tree | bcaa02c53a19e332ac20c41377e4951caed8d4a9 /source3/smbd/map_username.c | |
parent | 3955801298bbcf69afe01c212d5e8ac9812a5dcf (diff) | |
download | samba-2762b9a97582b9b28fd5985ba8e3d0299126820e.tar.gz samba-2762b9a97582b9b28fd5985ba8e3d0299126820e.tar.bz2 samba-2762b9a97582b9b28fd5985ba8e3d0299126820e.zip |
Always pass a TALLOC_CTX to str_list_make and str_list_copy
(This used to be commit e2c9fc4cf5f0ff725330fa44f53782db65fca37e)
Diffstat (limited to 'source3/smbd/map_username.c')
-rw-r--r-- | source3/smbd/map_username.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/map_username.c b/source3/smbd/map_username.c index 7290f70547..7536758bcb 100644 --- a/source3/smbd/map_username.c +++ b/source3/smbd/map_username.c @@ -178,7 +178,7 @@ bool map_username(fstring user) /* skip lines like 'user = ' */ - dosuserlist = str_list_make(dosname, NULL); + dosuserlist = str_list_make(talloc_tos(), dosname, NULL); if (!dosuserlist) { DEBUG(0,("Bad username map entry. Unable to build user list. Ignoring.\n")); continue; @@ -193,13 +193,13 @@ bool map_username(fstring user) fstrcpy( user, unixname ); if ( return_if_mapped ) { - str_list_free (&dosuserlist); + TALLOC_FREE(dosuserlist); x_fclose(f); return True; } } - str_list_free (&dosuserlist); + TALLOC_FREE(dosuserlist); } x_fclose(f); |