mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 00:50:50 +00:00
tcp: fix sending RST after second inp lookup
When we first find an inp, we set also the tp. If then a second
lookup is necessary, the inp is recomputed. If this fails, the
tp is not cleared, which resulted in failing KASSERT.
Therefore, clear the tp when staring the inp lookup procedure.
Reported by: Jenkins
Fixes: 02d15215ce
("tcp: improve blackhole support")
MFC after: 1 week
Sponsored by: Netflix, Inc.
This commit is contained in:
parent
0a44b8a56d
commit
df9de82f54
|
@ -833,6 +833,7 @@ tcp_input_with_port(struct mbuf **mp, int *offp, int proto, uint16_t port)
|
|||
((thflags & (TH_ACK|TH_SYN)) == TH_SYN ?
|
||||
INPLOOKUP_RLOCKPCB : INPLOOKUP_WLOCKPCB);
|
||||
findpcb:
|
||||
tp = NULL;
|
||||
#ifdef INET6
|
||||
if (isipv6 && fwd_tag != NULL) {
|
||||
struct sockaddr_in6 *next_hop6;
|
||||
|
|
Loading…
Reference in a new issue