diff options
author | 2019-08-26 22:22:14 +0000 | |
---|---|---|
committer | 2019-08-26 22:22:14 +0000 | |
commit | c314c8030071bec0bc321323addce2d5bc49acf4 (patch) | |
tree | 22582eddbbbe90ad4132ac37c5d70df7bfb679c1 /sys/netmpls | |
parent | sync (diff) | |
download | wireguard-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