mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +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 a new issue