summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_serverlistdb.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_serverlistdb.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_serverlistdb.c')
-rw-r--r--source3/nmbd/nmbd_serverlistdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_serverlistdb.c b/source3/nmbd/nmbd_serverlistdb.c
index cdb1089a54..e6fad8319d 100644
--- a/source3/nmbd/nmbd_serverlistdb.c
+++ b/source3/nmbd/nmbd_serverlistdb.c
@@ -251,7 +251,7 @@ static uint32 write_this_workgroup_name( struct subnet_record *subrec,
{
struct subnet_record *ssub;
- if(strnequal(lp_workgroup(), work->work_group, sizeof(nstring)-1))
+ if(strequal(lp_workgroup(), work->work_group))
return 0;
/* This is a workgroup we have seen on a broadcast subnet. All