From 30ce2c49c53da9feaf336aed63a687cbe416dfbb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 11 Feb 2005 08:18:55 +0000 Subject: r5329: made the nbt server case sensitive (This used to be commit 895071881920a5d6726f377f4367b588deabfb03) --- source4/nbt_server/interfaces.c | 2 +- source4/nbt_server/register.c | 2 +- 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; } -- cgit