diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2019-10-27 14:58:53 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2019-10-27 14:58:53 +0000 |
commit | 964f79feb93bf88b8a3a8771252c59d23f827f0a (patch) | |
tree | 6ce4f729f0ad4f360b4a38d5211e25e144b6a8fe /sys/netinet6 | |
parent | 832105d237d83d3a4d268e37a19a17c1c990f175 (diff) |
Don't fail hard if we can't preallocate history storage.
Using alloc.c for the history array brings no value and prevents
easy handling of memory shortage. Switch to plain reallocarray and
keep running if HISTSIZE is too big.
The allocation is still done upfront with no sanity checking, it would
probably be nicer to allocate space as needed.
Issue reported by thomas@habets.se who suggested a different approach.
Diffstat (limited to 'sys/netinet6')
0 files changed, 0 insertions, 0 deletions