git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
082a568
)
r5382: another place where we need to uppercase the called name for port 139 connects
author
Andrew Tridgell
<tridge@samba.org>
Mon, 14 Feb 2005 01:02:47 +0000
(
01:02
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:09:49 +0000
(13:09 -0500)
(This used to be commit
b13cea5b2b55ce3d4109666cf51af6ffd879d15d
)
source4/libcli/nbt/nbtname.c
patch
|
blob
|
history
diff --git
a/source4/libcli/nbt/nbtname.c
b/source4/libcli/nbt/nbtname.c
index b937d0aa26d68969bb60d0a99571ebed2693bc71..db1e51a1a9528b8f8ad127eb0c67c738c50f7616 100644
(file)
--- 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);
}