]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In case of interface initialization failure remove struct in_ifaddr* from
authorgonzo <gonzo@FreeBSD.org>
Tue, 24 Jun 2008 13:58:28 +0000 (13:58 +0000)
committergonzo <gonzo@FreeBSD.org>
Tue, 24 Jun 2008 13:58:28 +0000 (13:58 +0000)
commitafeaa2fd28e4e54ef4c528193706bd6c4d462788
tree63ede7b43865e98e46107d9ac9c305797edd0dd6
parent70dd244f261431949d544de710e4401a0ef0f237
In case of interface initialization failure remove struct in_ifaddr* from
in_ifaddrhashtbl in in_ifinit because error handler in in_control removes
entries only for AF_INET addresses. If in_ifinit is called for the cloned
inteface that has just been created its address family is not AF_INET and
therefor LIST_REMOVE is not called for respective LIST_INSERT_HEAD and
freed entries remain in in_ifaddrhashtbl and lead to memory corruption.

PR: kern/124384
sys/netinet/in.c