s3: use TDB_INCOMPATIBLE_HASH (the jenkins hash) on all TDB_CLEAR_IF_FIRST tdb's.
[obnox/samba-ctdb.git] / source3 / nmbd / nmbd_winsserver.c
index 70118063b40828664cc801befeac45293ddd2308..624e561764ab1faeb4f4302c154dda8d161e625c 100644 (file)
@@ -583,7 +583,8 @@ bool initialise_wins(void)
        }
 
        /* Open the wins.tdb. */
-       wins_tdb = tdb_open_log(lock_path("wins.tdb"), 0, TDB_DEFAULT|TDB_CLEAR_IF_FIRST, O_CREAT|O_RDWR, 0600);
+       wins_tdb = tdb_open_log(state_path("wins.tdb"), 0, TDB_DEFAULT|TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH,
+                       O_CREAT|O_RDWR, 0600);
        if (!wins_tdb) {
                DEBUG(0,("initialise_wins: failed to open wins.tdb. Error was %s\n",
                        strerror(errno) ));
@@ -2395,7 +2396,7 @@ void wins_write_database(time_t t, bool background)
   err_exit:
 
        SAFE_FREE(fnamenew);
-       /* fname is talloced and doesn't need to be freed */
+       TALLOC_FREE(fname);
 
        if (background) {
                _exit(0);