summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mksuncd
diff options
context:
space:
mode:
authorhaesbaert <haesbaert@openbsd.org>2012-09-12 07:45:19 +0000
committerhaesbaert <haesbaert@openbsd.org>2012-09-12 07:45:19 +0000
commitce9c777cce220af250829f55b7cf874ad2833cf6 (patch)
tree5f8006745f8a050dc382d1049bbb241680d7f0ad /usr.sbin/mksuncd
parentUse sg_addr instead of sg_lo_addr, leftovers from last commit. (diff)
downloadwireguard-openbsd-ce9c777cce220af250829f55b7cf874ad2833cf6.tar.xz
wireguard-openbsd-ce9c777cce220af250829f55b7cf874ad2833cf6.zip
Fix a race condition which would cause segfault due to the kernel
sending less (or more) data than expected. We do a sysctl to know how much data should be read, and then we try to read that amount, but there is a window between this two calls that things can change, this makes sure we have an "atomic view" of data. From Patrick Wildt, tested with over 7000 SAs, thanks. ok deraadt
Diffstat (limited to 'usr.sbin/mksuncd')
0 files changed, 0 insertions, 0 deletions