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:
peter 1999-11-18 08:28:24 +00:00
parent 28728afd39
commit 96eaf73f74

View File

@ -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);