mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
Fix long-standing bug predating FreeBSD where calling connect() twice
on a raw ip socket will crash the system with a null-dereference.
This commit is contained in:
parent
d1841903a0
commit
f5c5746047
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109451
@ -581,7 +581,9 @@ static int
|
||||
rip_abort(struct socket *so)
|
||||
{
|
||||
soisdisconnected(so);
|
||||
return rip_detach(so);
|
||||
if (so->so_state & SS_NOFDREF)
|
||||
return rip_detach(so);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user