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 | 409eef2be78a74b8ae69e4f1f58514006f0ae090 (patch) | |
tree | 72ace7c1dd9c73540da58c88054ee2b6760d9635 /source/nmbd/nmbd_browsesync.c | |
parent | 066b9c4276a968788a03709a00d4f672ac032df7 (diff) | |
download | samba-409eef2be78a74b8ae69e4f1f58514006f0ae090.tar.gz samba-409eef2be78a74b8ae69e4f1f58514006f0ae090.tar.xz samba-409eef2be78a74b8ae69e4f1f58514006f0ae090.zip |
r928: Ensure we're calling send_mailslot() with a UNIX charset
target name.
Jeremy.
Diffstat (limited to 'source/nmbd/nmbd_browsesync.c')
-rw-r--r-- | source/nmbd/nmbd_browsesync.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/nmbd/nmbd_browsesync.c b/source/nmbd/nmbd_browsesync.c index 15827e21bae..56ffdc2670f 100644 --- a/source/nmbd/nmbd_browsesync.c +++ b/source/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); } |