summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_workgroupdb.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-13 02:47:19 +0000
committerJeremy Allison <jra@samba.org>2004-03-13 02:47:19 +0000
commit309c0a65b7de7311a5032d6a8e41c9eb039af2aa (patch)
tree58d6944a70a1db7c5740512402fa97121dbced56 /source3/nmbd/nmbd_workgroupdb.c
parent9a699d74efbcbbb8607c7dea2734d7acb3478896 (diff)
downloadsamba-309c0a65b7de7311a5032d6a8e41c9eb039af2aa.tar.gz
samba-309c0a65b7de7311a5032d6a8e41c9eb039af2aa.tar.bz2
samba-309c0a65b7de7311a5032d6a8e41c9eb039af2aa.zip
Ensure we don't truncate strcmps to nstring anymore...
Jeremy. (This used to be commit b3aff7f214da97925690a5d0a887ea1b336d107a)
Diffstat (limited to 'source3/nmbd/nmbd_workgroupdb.c')
-rw-r--r--source3/nmbd/nmbd_workgroupdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nmbd/nmbd_workgroupdb.c b/source3/nmbd/nmbd_workgroupdb.c
index bd2737ef97..3efef49c04 100644
--- a/source3/nmbd/nmbd_workgroupdb.c
+++ b/source3/nmbd/nmbd_workgroupdb.c
@@ -88,7 +88,7 @@ static struct work_record *create_workgroup(const char *name, int ttl)
for (subrec = FIRST_SUBNET; subrec && (t == -1); subrec = NEXT_SUBNET_INCLUDING_UNICAST(subrec)) {
struct work_record *w;
for (w = subrec->workgrouplist; w && t == -1; w = w->next) {
- if (strnequal(w->work_group, work->work_group, sizeof(nstring)-1))
+ if (strequal(w->work_group, work->work_group))
t = w->token;
}
}
@@ -162,7 +162,7 @@ struct work_record *find_workgroup_on_subnet(struct subnet_record *subrec,
name, subrec->subnet_name));
for (ret = subrec->workgrouplist; ret; ret = ret->next) {
- if (strnequal(ret->work_group,name,sizeof(nstring)-1)) {
+ if (strequal(ret->work_group,name)) {
DEBUGADD(4, ("found.\n"));
return(ret);
}
@@ -223,7 +223,7 @@ void initiate_myworkgroup_startup(struct subnet_record *subrec, struct work_reco
{
int i;
- if(!strnequal(lp_workgroup(), work->work_group,sizeof(nstring)-1))
+ if(!strequal(lp_workgroup(), work->work_group))
return;
/* If this is a broadcast subnet then start elections on it if we are so configured. */