mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
Add a dummy disconnect function so that the socket code doesn't leap into
space when it calls the disconnect PRU function without checking that it there.
This commit is contained in:
parent
f933f02094
commit
0402c7ce1d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72055
@ -947,6 +947,11 @@ ngs_shutdown(node_p node)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
dummy_disconnect(struct socket *so)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
/*
|
||||
* Control and data socket type descriptors
|
||||
*/
|
||||
@ -960,7 +965,7 @@ static struct pr_usrreqs ngc_usrreqs = {
|
||||
pru_connect2_notsupp,
|
||||
pru_control_notsupp,
|
||||
ngc_detach,
|
||||
NULL, /* disconnect */
|
||||
dummy_disconnect, /* disconnect */
|
||||
pru_listen_notsupp,
|
||||
NULL, /* setpeeraddr */
|
||||
pru_rcvd_notsupp,
|
||||
@ -983,7 +988,7 @@ static struct pr_usrreqs ngd_usrreqs = {
|
||||
pru_connect2_notsupp,
|
||||
pru_control_notsupp,
|
||||
ngd_detach,
|
||||
NULL, /* disconnect */
|
||||
dummy_disconnect, /* disconnect */
|
||||
pru_listen_notsupp,
|
||||
NULL, /* setpeeraddr */
|
||||
pru_rcvd_notsupp,
|
||||
|
Loading…
Reference in New Issue
Block a user