summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-05-27 22:57:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:50 -0500
commit16452d54f77b17409f3cb40a286ef84e8e6d79a2 (patch)
treee4e2f22f78c4b41c594c16abd64b06171dc3a01f /source3/nmbd
parent7959cba656133840c37d293ffab6831f3097016f (diff)
downloadsamba-16452d54f77b17409f3cb40a286ef84e8e6d79a2.tar.gz
samba-16452d54f77b17409f3cb40a286ef84e8e6d79a2.tar.bz2
samba-16452d54f77b17409f3cb40a286ef84e8e6d79a2.zip
r928: Ensure we're calling send_mailslot() with a UNIX charset
target name. Jeremy. (This used to be commit 409eef2be78a74b8ae69e4f1f58514006f0ae090)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd_browsesync.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_browsesync.c b/source3/nmbd/nmbd_browsesync.c
index 15827e21ba..56ffdc2670 100644
--- a/source3/nmbd/nmbd_browsesync.c
+++ b/source3/nmbd/nmbd_browsesync.c
@@ -103,6 +103,7 @@ static void announce_local_master_browser_to_domain_master_browser( struct work_
{
pstring outbuf;
unstring myname;
+ unstring dmb_name;
char *p;
if(ismyip(work->dmb_addr)) {
@@ -135,8 +136,10 @@ static void announce_local_master_browser_to_domain_master_browser( struct work_
work->work_group );
}
+ /* Target name for send_mailslot must be in UNIX charset. */
+ pull_ascii_nstring(dmb_name, sizeof(dmb_name), work->dmb_name.name);
send_mailslot(True, BROWSE_MAILSLOT, outbuf,PTR_DIFF(p,outbuf),
- global_myname(), 0x0, work->dmb_name.name, 0x0,
+ global_myname(), 0x0, dmb_name, 0x0,
work->dmb_addr, FIRST_SUBNET->myip, DGRAM_PORT);
}