Simplify error path in in route_attach(). We always call it in thread
authormvs <mvs@openbsd.org>
Mon, 15 Feb 2021 19:01:30 +0000 (19:01 +0000)
committermvs <mvs@openbsd.org>
Mon, 15 Feb 2021 19:01:30 +0000 (19:01 +0000)
commita9252649d3c7afe4a8ecb590e876d29a1a4c2bc3
tree4fe418d013209062c3edaad30bce74378286d937
parent3cade00e444bbb76ce7b07bc5caf2a1183a97350
Simplify error path in in route_attach(). We always call it in thread
context so we always have `curproc' Also protocol control block is not
required for soreserve() so we can do it before `rop' allocation.

ok bluhm@
sys/net/rtsock.c