diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-02-14 01:02:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:49 -0500 |
commit | 803ce86db9183867be31cc49b63e85ed00c6b226 (patch) | |
tree | 37547ee33344fe7a9ace6990dcf2f14ecdb16c4c /source4 | |
parent | 082a5684738e7b9fce7466d7e7519816605b0958 (diff) | |
download | samba-803ce86db9183867be31cc49b63e85ed00c6b226.tar.gz samba-803ce86db9183867be31cc49b63e85ed00c6b226.tar.bz2 samba-803ce86db9183867be31cc49b63e85ed00c6b226.zip |
r5382: another place where we need to uppercase the called name for port 139 connects
(This used to be commit b13cea5b2b55ce3d4109666cf51af6ffd879d15d)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/nbt/nbtname.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/libcli/nbt/nbtname.c b/source4/libcli/nbt/nbtname.c index b937d0aa26..db1e51a1a9 100644 --- a/source4/libcli/nbt/nbtname.c +++ b/source4/libcli/nbt/nbtname.c @@ -311,15 +311,17 @@ void nbt_choose_called_name(TALLOC_CTX *mem_ctx, } if (strlen(name) > 15) { const char *p = strchr(name, '.'); + char *s; if (p - name > 15) { n->name = "*SMBSERVER"; return; } - n->name = talloc_strndup(mem_ctx, name, PTR_DIFF(p, name)); + s = talloc_strndup(mem_ctx, name, PTR_DIFF(p, name)); + n->name = strupper_talloc(mem_ctx, s); return; } - n->name = talloc_strdup(mem_ctx, name); + n->name = strupper_talloc(mem_ctx, name); } |