summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_tdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb/pdb_tdb.c')
-rw-r--r--source3/passdb/pdb_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index aef088c124..8f2fe7651f 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -1204,7 +1204,7 @@ static int tdbsam_traverse_privilege(TDB_CONTEXT *t, TDB_DATA key, TDB_DATA data
int len;
s = data.dptr;
- while (c = strchr(s, ',')) {
+ while ((c=strchr(s, ',')) !=NULL) {
len = MAX((c - s), strlen(pt->sid_list[i]));
if (strncmp(s, pt->sid_list[i], len) == 0) {
DEBUG(10, ("sid [%s] found in users sid list\n", pt->sid_list[i]));