Plug more refcount leaks and possible NULL deref for interface
address list. Submitted by: scottl@ MFC after: 3 days
This commit is contained in:
parent
4f985ef6b9
commit
77d396fd18
@ -512,6 +512,8 @@ tcp6_input(struct mbuf **mp, int *offp, int proto)
|
|||||||
(caddr_t)&ip6->ip6_dst - (caddr_t)ip6);
|
(caddr_t)&ip6->ip6_dst - (caddr_t)ip6);
|
||||||
return IPPROTO_DONE;
|
return IPPROTO_DONE;
|
||||||
}
|
}
|
||||||
|
if (ia6)
|
||||||
|
ifa_free(&ia6->ia_ifa);
|
||||||
|
|
||||||
tcp_input(m, *offp);
|
tcp_input(m, *offp);
|
||||||
return IPPROTO_DONE;
|
return IPPROTO_DONE;
|
||||||
@ -1240,7 +1242,8 @@ tcp_input(struct mbuf *m, int off0)
|
|||||||
rstreason = BANDLIM_RST_OPENPORT;
|
rstreason = BANDLIM_RST_OPENPORT;
|
||||||
goto dropwithreset;
|
goto dropwithreset;
|
||||||
}
|
}
|
||||||
ifa_free(&ia6->ia_ifa);
|
if (ia6)
|
||||||
|
ifa_free(&ia6->ia_ifa);
|
||||||
}
|
}
|
||||||
#endif /* INET6 */
|
#endif /* INET6 */
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user