r26401: Don't cache interfaces context in libnetif.
[bbaumbach/samba-autobuild/.git] / source4 / nbt_server / wins / winsdb.c
index 428b15473176fca5517e8c9e21bf534a01d54512..7de5bba468d30289ac426440c8e071dd33c86299 100644 (file)
@@ -1011,10 +1011,10 @@ failed:
 }
 
 struct winsdb_handle *winsdb_connect(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx,
+                                    const char *owner,
                                     enum winsdb_handle_caller caller)
 {
        struct winsdb_handle *h = NULL;
-       const char *owner;
        unsigned int flags = 0;
        bool ret;
        int ldb_err;
@@ -1033,11 +1033,6 @@ struct winsdb_handle *winsdb_connect(TALLOC_CTX *mem_ctx, struct loadparm_contex
        h->caller = caller;
        h->hook_script = lp_wins_hook(lp_ctx);
 
-       owner = lp_parm_string(lp_ctx, NULL, "winsdb", "local_owner");
-       if (!owner) {
-               owner = iface_n_ip(lp_ctx, 0);
-       }
-
        h->local_owner = talloc_strdup(h, owner);
        if (!h->local_owner) goto failed;