Skip to content

Commit

Permalink
exmdb_provider: initialize array count to zero in read_table_row()
Browse files Browse the repository at this point in the history
exmdb_server::match_table would set ppropvals->count=0 before calling
match_tbl_hier, but exmdb_server::read_table_row did not set count=0
before calling read_tblrow_hier. 52f86 missed that during transformation.

Fixes: gromox-2.10-221-g52f8698e3
  • Loading branch information
jengelh committed Aug 7, 2023
1 parent 83d77c4 commit 56dace7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exch/exmdb_provider/table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2638,12 +2638,12 @@ BOOL exmdb_server::read_table_row(const char *dir, const char *username,
if (!exmdb_server::is_private())
exmdb_server::set_public_username(username);
auto cl_1 = make_scope_exit([]() { exmdb_server::set_public_username(nullptr); });
ppropvals->count = 0;
ppropvals->ppropval = nullptr;
if (ptnode->type == table_type::hierarchy)
return read_tblrow_hier(cpid, table_id, pproptags, inst_id, inst_num, ppropvals, pdb);
else if (ptnode->type == table_type::content)
return read_tblrow_ctnt(cpid, table_id, pproptags, inst_id, inst_num, ppropvals, pdb, ptnode);
else
ppropvals->count = 0;
return TRUE;
}

Expand Down

0 comments on commit 56dace7

Please sign in to comment.