summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-11 08:18:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:43 -0500
commit30ce2c49c53da9feaf336aed63a687cbe416dfbb (patch)
treec9b983c25718d9fec5ce68a86385af9defc49b3c
parentdd689afdc807b9ff057ee7e917e12b6597fe319c (diff)
downloadsamba-30ce2c49c53da9feaf336aed63a687cbe416dfbb.tar.gz
samba-30ce2c49c53da9feaf336aed63a687cbe416dfbb.tar.bz2
samba-30ce2c49c53da9feaf336aed63a687cbe416dfbb.zip
r5329: made the nbt server case sensitive
(This used to be commit 895071881920a5d6726f377f4367b588deabfb03)
-rw-r--r--source4/nbt_server/interfaces.c2
-rw-r--r--source4/nbt_server/register.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/nbt_server/interfaces.c b/source4/nbt_server/interfaces.c
index b2fc0ad6be..42572614f2 100644
--- a/source4/nbt_server/interfaces.c
+++ b/source4/nbt_server/interfaces.c
@@ -79,7 +79,7 @@ struct nbtd_iface_name *nbtd_find_iname(struct nbtd_interface *iface,
struct nbtd_iface_name *iname;
for (iname=iface->names;iname;iname=iname->next) {
if (iname->name.type == name->type &&
- StrCaseCmp(name->name, iname->name.name) == 0 &&
+ strcmp(name->name, iname->name.name) == 0 &&
((iname->nb_flags & nb_flags) == nb_flags)) {
return iname;
}
diff --git a/source4/nbt_server/register.c b/source4/nbt_server/register.c
index 3b7d57efaf..c28ba0764c 100644
--- a/source4/nbt_server/register.c
+++ b/source4/nbt_server/register.c
@@ -170,7 +170,7 @@ static void nbtd_register_name_iface(struct nbtd_interface *iface,
iname->name.name = strupper_talloc(iname, name);
iname->name.type = type;
if (scope && *scope) {
- iname->name.scope = talloc_strdup(iname, scope);
+ iname->name.scope = strupper_talloc(iname, scope);
} else {
iname->name.scope = NULL;
}