]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r327844:
authortuexen <tuexen@FreeBSD.org>
Sat, 7 Apr 2018 20:34:03 +0000 (20:34 +0000)
committertuexen <tuexen@FreeBSD.org>
Sat, 7 Apr 2018 20:34:03 +0000 (20:34 +0000)
commit9a9c69468a3b69096d5d1537cd02cc8c7fcb5069
tree6f5cdc63d262551934a31fa506e419df6427b8cc
parent9d2361cff5b740126d8345dfbfbeb10208f79836
MFC r327844:

Ensure that the vnet is set when calling pru_sockaddr() and
pru_peeraddr().

This is already true when called via kern_getsockname() and
kern_getpeername(). This patch sets it also, when they arecalled
via soo_fill_kinfo(). This is necessary, since the corresponding
functions for SCTP require the vnet to be set. Without this,
if a process having an wildcard bound SCTP socket is
terminated and a core is written, the kernel panics.
sys/kern/sys_socket.c