Skip to content

Commit

Permalink
Fix use-after-free bug in run_iscan
Browse files Browse the repository at this point in the history
  • Loading branch information
benesch committed Jan 27, 2016
1 parent 6ea91d3 commit 57fa141
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mttest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ template <typename T>
void kvtest_client<T>::iscan_sync(const Str &firstkey, int n,
std::vector<Str> &keys,
std::vector<Str> &values) {
Json req = Json::array(0, 0, firstkey, n);
q_[0].run_iscan(table_->table(), req, *ti_);
output_scan(req, keys, values);
req_ = Json::array(0, 0, firstkey, n);
q_[0].run_iscan(table_->table(), req_, *ti_);
output_scan(req_, keys, values);
}

template <typename T>
Expand Down

0 comments on commit 57fa141

Please sign in to comment.