diff options
author | Jeremy Allison <jra@samba.org> | 2004-05-27 22:57:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:50 -0500 |
commit | 16452d54f77b17409f3cb40a286ef84e8e6d79a2 (patch) | |
tree | e4e2f22f78c4b41c594c16abd64b06171dc3a01f /source3/nmbd | |
parent | 7959cba656133840c37d293ffab6831f3097016f (diff) | |
download | samba-16452d54f77b17409f3cb40a286ef84e8e6d79a2.tar.gz samba-16452d54f77b17409f3cb40a286ef84e8e6d79a2.tar.xz 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.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_browsesync.c b/source3/nmbd/nmbd_browsesync.c index 15827e21bae..56ffdc2670f 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); } |