summaryrefslogtreecommitdiff
path: root/source3/smbd/password.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2002-07-28 18:10:39 +0000
committerSimo Sorce <idra@samba.org>2002-07-28 18:10:39 +0000
commita4ec4acd61d58bca9c1f6d474ab16265e4113f7a (patch)
tree83a1ff7a5b26b4007e4479ed4e7466624292f0a0 /source3/smbd/password.c
parent551d50c4e2bdde0b4f92001c92f8f69ffade44ad (diff)
downloadsamba-a4ec4acd61d58bca9c1f6d474ab16265e4113f7a.tar.gz
samba-a4ec4acd61d58bca9c1f6d474ab16265e4113f7a.tar.bz2
samba-a4ec4acd61d58bca9c1f6d474ab16265e4113f7a.zip
found nasty bug in intl/lang_tdb.c tdb structure was not tested to not be null before close
this one fixes swat not working with browsers that set more then one language. along the way implemented language priority in web/neg_lang.c with bubble sort also changet str_list_make to be able to use a different separator string Simo. (This used to be commit 69765e4faa8aaae74c97afc917891fc72d80703d)
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r--source3/smbd/password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 391de02dea..2558ffe163 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -351,7 +351,7 @@ BOOL user_ok(const char *user,int snum)
if (valid) str_list_free (&valid);
if (ret && lp_onlyuser(snum)) {
- char **user_list = str_list_make (lp_username(snum));
+ char **user_list = str_list_make (lp_username(snum), NULL);
if (user_list && str_list_substitute(user_list, "%S", lp_servicename(snum))) {
ret = user_in_list(user, user_list);
}