diff options
author | 2020-05-06 14:40:54 +0000 | |
---|---|---|
committer | 2020-05-06 14:40:54 +0000 | |
commit | 07669e8b3af732f05a181ba4170be73c254ea6b5 (patch) | |
tree | d7083003f9dc90e256b74e84b909ede5125806dd /sys/kern/tty.c | |
parent | rpki-client is only interested in real files. Don't tell rsync to (diff) | |
download | wireguard-openbsd-07669e8b3af732f05a181ba4170be73c254ea6b5.tar.xz wireguard-openbsd-07669e8b3af732f05a181ba4170be73c254ea6b5.zip |
Do not use the pointer returned by ibuf_reserve() after calling another
ibuf function. After the call the internal buffer may have moved by realloc()
and so the pointer is invalid. Instead use ibuf_size() to get the current
offset in the buffer and use ibuf_seek() later on to write back the updated
lsa age into the buffer at the right spot.
This fixes an issue seen by Richard Chivers on routers with many passive
interfaces.
OK stsp@ deraadt@
Diffstat (limited to 'sys/kern/tty.c')
0 files changed, 0 insertions, 0 deletions