summaryrefslogtreecommitdiff
path: root/source4/libcli/dgram
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-02 16:20:29 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:46:59 +0100
commit25f286fdfe0cf7ac800ccf3ac62ee5e1d2ceb583 (patch)
tree9ce15c25300172ff1258436f7cd27b9864fcc797 /source4/libcli/dgram
parent3b281c308111323600af4ed44af372d7ceb0b25b (diff)
downloadsamba-25f286fdfe0cf7ac800ccf3ac62ee5e1d2ceb583.tar.gz
samba-25f286fdfe0cf7ac800ccf3ac62ee5e1d2ceb583.tar.bz2
samba-25f286fdfe0cf7ac800ccf3ac62ee5e1d2ceb583.zip
r26223: Move loadparm context up in the stack.
(This used to be commit 152e2b1a283675b53affb8f7225644925f171dbd)
Diffstat (limited to 'source4/libcli/dgram')
-rw-r--r--source4/libcli/dgram/browse.c3
-rw-r--r--source4/libcli/dgram/libdgram.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/source4/libcli/dgram/browse.c b/source4/libcli/dgram/browse.c
index 3b5f67118f..ab831df8cc 100644
--- a/source4/libcli/dgram/browse.c
+++ b/source4/libcli/dgram/browse.c
@@ -56,6 +56,7 @@ NTSTATUS dgram_mailslot_browse_send(struct nbt_dgram_socket *dgmsock,
NTSTATUS dgram_mailslot_browse_reply(struct nbt_dgram_socket *dgmsock,
struct nbt_dgram_packet *request,
const char *mailslot_name,
+ const char *my_netbios_name,
struct nbt_browse_packet *reply)
{
NTSTATUS status;
@@ -72,7 +73,7 @@ NTSTATUS dgram_mailslot_browse_reply(struct nbt_dgram_socket *dgmsock,
return ndr_map_error2ntstatus(ndr_err);
}
- make_nbt_name_client(&myname, lp_netbios_name(global_loadparm));
+ make_nbt_name_client(&myname, my_netbios_name);
dest = socket_address_from_strings(tmp_ctx, dgmsock->sock->backend_name,
request->src_addr, request->src_port);
diff --git a/source4/libcli/dgram/libdgram.h b/source4/libcli/dgram/libdgram.h
index 8165e445bc..9f67d58ae2 100644
--- a/source4/libcli/dgram/libdgram.h
+++ b/source4/libcli/dgram/libdgram.h
@@ -154,6 +154,7 @@ NTSTATUS dgram_mailslot_browse_send(struct nbt_dgram_socket *dgmsock,
NTSTATUS dgram_mailslot_browse_reply(struct nbt_dgram_socket *dgmsock,
struct nbt_dgram_packet *request,
const char *mailslot_name,
+ const char *my_netbios_name,
struct nbt_browse_packet *reply);
NTSTATUS dgram_mailslot_browse_parse(struct dgram_mailslot_handler *dgmslot,