diff options
author | Volker Lendecke <vl@samba.org> | 2013-11-09 21:29:24 +0100 |
---|---|---|
committer | Ira Cooper <ira@samba.org> | 2013-11-11 21:04:09 +0100 |
commit | d2731ad5aae9f1fb8c1c6a65a61ef787e993b248 (patch) | |
tree | 1220bf0c678d9ba72204c6afa3d7b9b19a37135d /lib/ldb/ldb_map | |
parent | 6b7b007a67ce8ec4e2979f09ba1bdea903116924 (diff) | |
download | samba-d2731ad5aae9f1fb8c1c6a65a61ef787e993b248.tar.gz |
ldb: Fix CID 241329 Array compared against 0
u.generate.remote_names is an array, not a pointer
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'lib/ldb/ldb_map')
-rw-r--r-- | lib/ldb/ldb_map/ldb_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/ldb_map/ldb_map.c b/lib/ldb/ldb_map/ldb_map.c index 52b483bafe5..66b00592921 100644 --- a/lib/ldb/ldb_map/ldb_map.c +++ b/lib/ldb/ldb_map/ldb_map.c @@ -340,7 +340,7 @@ const struct ldb_map_attribute *map_attr_find_remote(const struct ldb_map_contex break; case LDB_MAP_GENERATE: - for (j = 0; map->u.generate.remote_names && map->u.generate.remote_names[j]; j++) { + for (j = 0; map->u.generate.remote_names[j]; j++) { if (ldb_attr_cmp(map->u.generate.remote_names[j], name) == 0) { return map; } |