Skip to content

Commit

Permalink
fix the bug that did not properly check to see a locator index.
Browse files Browse the repository at this point in the history
  • Loading branch information
ohmori7 committed Jan 4, 2014
1 parent b82e6c8 commit d33f937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kcndbd/kcndb_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ kcndb_db_loc_lookup(struct kcndb_db_table *kdt, uint64_t idx,
struct kcndb_file *kf = kdt->kdt_loc;
struct kcn_buf *kb = kcndb_file_buf(kf);

if (kcndb_db_table_size(kdt) < idx) {
if (kcndb_db_loc_size(kdt) < idx) {
errno = EINVAL;
return false;
}
Expand Down

0 comments on commit d33f937

Please sign in to comment.