From 16452d54f77b17409f3cb40a286ef84e8e6d79a2 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 27 May 2004 22:57:50 +0000 Subject: r928: Ensure we're calling send_mailslot() with a UNIX charset target name. Jeremy. (This used to be commit 409eef2be78a74b8ae69e4f1f58514006f0ae090) --- source3/nmbd/nmbd_browsesync.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/nmbd') 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); } -- cgit