1
0
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:
Jeffrey Hsu 2003-01-18 01:10:55 +00:00
parent d1841903a0
commit f5c5746047
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109451

View File

@ -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