Skip to content

Commit

Permalink
Fixed out-of-bounds write in onion pool.
Browse files Browse the repository at this point in the history
  • Loading branch information
anonhelper authored and dgoulet-tor committed Oct 27, 2020
1 parent 4c00ec8 commit fb7db9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/onion.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static int insert_onion_entry(struct onion_entry *entry,
assert(entry);
assert(pool);

if (pool->count > pool->size) {
if (pool->count >= pool->size) {
/* Double the size of the pool. */
ret = resize_onion_pool(pool, pool->size * 2);
if (ret < 0) {
Expand Down

0 comments on commit fb7db9e

Please sign in to comment.