summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2019-10-27 14:58:53 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2019-10-27 14:58:53 +0000
commit964f79feb93bf88b8a3a8771252c59d23f827f0a (patch)
tree6ce4f729f0ad4f360b4a38d5211e25e144b6a8fe /sys/netinet6
parent832105d237d83d3a4d268e37a19a17c1c990f175 (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