Pass protosw instead of domain structure to soalloc() to get real
authormvs <mvs@openbsd.org>
Mon, 12 Feb 2024 22:48:27 +0000 (22:48 +0000)
committermvs <mvs@openbsd.org>
Mon, 12 Feb 2024 22:48:27 +0000 (22:48 +0000)
commit94b0822958d17d21744eef4d9f216afecd44427e
treec117b70a9252bbd9d1e0f457d7af49a856ef3d2e
parent8434116fd2c22fec81b518e015e6bea3382f0e33
Pass protosw instead of domain structure to soalloc() to get real
`pr_type'. The corresponding domain is referenced as `pr_domain'.
Otherwise dp->dom_protosw->pr_type of inet sockets always points
to inetsw[0].

ok bluhm
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/sys/socketvar.h