Fix a warning and a potential panic if TCPDEBUG is active. (tp is
a wild pointer and used by TCPDEBUG2())
This commit is contained in:
parent
28728afd39
commit
96eaf73f74
@ -352,6 +352,8 @@ tcp_usr_send(struct socket *so, int flags, struct mbuf *m,
|
||||
if (control)
|
||||
m_freem(control);
|
||||
error = ECONNRESET; /* XXX EPIPE? */
|
||||
tp = NULL;
|
||||
TCPDEBUG1();
|
||||
goto out;
|
||||
}
|
||||
tp = intotcpcb(inp);
|
||||
|
Loading…
Reference in New Issue
Block a user