diff options
author | 2015-08-17 09:46:26 +0000 | |
---|---|---|
committer | 2015-08-17 09:46:26 +0000 | |
commit | b770ea97245e2b95f74fe43ce13d83a95925e4bb (patch) | |
tree | 50d5d897ae5b714ab12b84a6f557d6b5dc6a3245 /sys/netinet6 | |
parent | Match the free(3) semantic and accept NULL pointers in rtfree(9). (diff) | |
download | wireguard-openbsd-b770ea97245e2b95f74fe43ce13d83a95925e4bb.tar.xz wireguard-openbsd-b770ea97245e2b95f74fe43ce13d83a95925e4bb.zip |
Convert two rt->rt_refcnt-- into rtfree(9) making sure the route entry
is freed when we no longer need it.
In this case both code paths are executed in process context and thus
serialized by the KERNEL_LOCK. Since we are adding a route entry to
the table in both cases, rtfree(9) will not actually free the entry
because it is still RT_VALID.
ok bluhm@
Diffstat (limited to 'sys/netinet6')
0 files changed, 0 insertions, 0 deletions