summaryrefslogtreecommitdiffstats
path: root/sys/netmpls
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2019-08-26 22:22:14 +0000
committerbenno <benno@openbsd.org>2019-08-26 22:22:14 +0000
commitc314c8030071bec0bc321323addce2d5bc49acf4 (patch)
tree22582eddbbbe90ad4132ac37c5d70df7bfb679c1 /sys/netmpls
parentsync (diff)
downloadwireguard-openbsd-c314c8030071bec0bc321323addce2d5bc49acf4.tar.xz
wireguard-openbsd-c314c8030071bec0bc321323addce2d5bc49acf4.zip
replace a mmap() with pread(). The mmap() is not needed, the file is
read sequentially anyway, (hash-sized) block by block. This avoids counting potentially large files against the memory limits of the process. Problem reported by Jan Stary, thanks. ok deraadt@
Diffstat (limited to 'sys/netmpls')
0 files changed, 0 insertions, 0 deletions