summaryrefslogtreecommitdiff
path: root/source4/nbt_server/wins
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2014-01-17 10:30:37 +1300
committerAndrew Bartlett <abartlet@samba.org>2014-02-20 10:11:06 +1300
commit1fb1f6bc0dad00d1eb2d1e2aff34e9d3b2714421 (patch)
tree93ec165ad1423688666d46399c1890a17cb99b15 /source4/nbt_server/wins
parentbce62e600085270f26053882c5a4e35f5fe4fb5e (diff)
downloadsamba-1fb1f6bc0dad00d1eb2d1e2aff34e9d3b2714421.tar.gz
lib/param: handle non-constant strings properly by passing in a memory context
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Change-Id: Ic6bb1c709defd2b0f35fc7b877da0badca385776 Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
Diffstat (limited to 'source4/nbt_server/wins')
-rw-r--r--source4/nbt_server/wins/winsdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/nbt_server/wins/winsdb.c b/source4/nbt_server/wins/winsdb.c
index 9b1cd2c3bb6..fa9a6154b9a 100644
--- a/source4/nbt_server/wins/winsdb.c
+++ b/source4/nbt_server/wins/winsdb.c
@@ -994,7 +994,7 @@ struct winsdb_handle *winsdb_connect(TALLOC_CTX *mem_ctx,
if (!h->ldb) goto failed;
h->caller = caller;
- h->hook_script = lpcfg_wins_hook(lp_ctx);
+ h->hook_script = lpcfg_wins_hook(lp_ctx, h);
h->local_owner = talloc_strdup(h, owner);
if (!h->local_owner) goto failed;