svn commit: r236611 - stable/8/sys/netinet
Bjoern A. Zeeb
bz at FreeBSD.org
Tue Jun 5 11:29:01 UTC 2012
Author: bz
Date: Tue Jun 5 11:29:00 2012
New Revision: 236611
URL: http://svn.freebsd.org/changeset/base/236611
Log:
MFC r236575 (by emax):
Plug more refcount leaks and possible NULL deref for interface
address list.
Modified:
stable/8/sys/netinet/tcp_input.c
Directory Properties:
stable/8/sys/ (props changed)
Modified: stable/8/sys/netinet/tcp_input.c
==============================================================================
--- stable/8/sys/netinet/tcp_input.c Tue Jun 5 11:28:57 2012 (r236610)
+++ stable/8/sys/netinet/tcp_input.c Tue Jun 5 11:29:00 2012 (r236611)
@@ -538,6 +538,8 @@ tcp6_input(struct mbuf **mp, int *offp,
(caddr_t)&ip6->ip6_dst - (caddr_t)ip6);
return IPPROTO_DONE;
}
+ if (ia6)
+ ifa_free(&ia6->ia_ifa);
tcp_input(m, *offp);
return IPPROTO_DONE;
@@ -1206,7 +1208,8 @@ relocked:
rstreason = BANDLIM_RST_OPENPORT;
goto dropwithreset;
}
- ifa_free(&ia6->ia_ifa);
+ if (ia6)
+ ifa_free(&ia6->ia_ifa);
}
#endif
/*
More information about the svn-src-all
mailing list