diff options
author | Simo Sorce <idra@samba.org> | 2002-07-28 18:10:39 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2002-07-28 18:10:39 +0000 |
commit | 69765e4faa8aaae74c97afc917891fc72d80703d (patch) | |
tree | 56d6cfcb3549efdc88b45c1263ad44cda002dbb0 /source/intl | |
parent | 03892bcfbb566f866fa8943dc42b844d833690f4 (diff) | |
download | samba-69765e4faa8aaae74c97afc917891fc72d80703d.tar.gz samba-69765e4faa8aaae74c97afc917891fc72d80703d.tar.xz samba-69765e4faa8aaae74c97afc917891fc72d80703d.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.
Diffstat (limited to 'source/intl')
-rw-r--r-- | source/intl/lang_tdb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/intl/lang_tdb.c b/source/intl/lang_tdb.c index d5e8bd41bd5..a86ea0a3f9a 100644 --- a/source/intl/lang_tdb.c +++ b/source/intl/lang_tdb.c @@ -106,8 +106,10 @@ BOOL lang_tdb_init(const char *lang) if (initialised) { /* we are re-initialising, free up any old init */ - tdb_close(tdb); - tdb = NULL; + if (tdb) { + tdb_close(tdb); + tdb = NULL; + } SAFE_FREE(current_lang); } |