kernel - Fix ENOBUFS related panic in tcp_output
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 1 Jan 2012 20:14:40 +0000 (12:14 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 1 Jan 2012 20:14:40 +0000 (12:14 -0800)
commit7f84a1ea252f031c74a5896f5eeb10fc5ef2df0f
treeadcd2a6c00f375757d951a46d4b3ed216d4bed23
parentd6c40a21cd564f80219d35071b322eeb2d4d43f6
kernel - Fix ENOBUFS related panic in tcp_output

* If the tcp_output code gets all the way to the end but then has to
  'goto again', it fails to NULL out the (th) pointer.  If the mbuf fails
  on the retry (m == NULL), the non-NULL (th) winds up causing the code to
  believe that the mbuf is good and results in a null-pointer dereference.
sys/netinet/tcp_output.c