summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2017-02-28 09:50:13 +0000
committermpi <mpi@openbsd.org>2017-02-28 09:50:13 +0000
commitc42687bd9a05206296b6ca61dd55cf2f58ae8c73 (patch)
tree72dea0cf3237eae1dc216efe3cf680c654448855 /lib/libssl/ssl_lib.c
parentSort vm.conf(5) config options alphabetically (diff)
downloadwireguard-openbsd-c42687bd9a05206296b6ca61dd55cf2f58ae8c73.tar.xz
wireguard-openbsd-c42687bd9a05206296b6ca61dd55cf2f58ae8c73.zip
Prevent a MP race in rtable_lookup().
If an ART node is linked to multiple route entries, in the MPATH case, it is not safe to dereference ``an_dst''. This non-refcounted pointer can be changed at any time by another CPU. So get rid of the pointer and use the first destination of a route entry when comparing sockaddrs. This allows us so remove a pointer from 'struct art_node' and save 5Mb of memory in an IPv4 fullfeed. ok jmatthew@, claudio@, dlg@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions