Re: [RFC] TCP congestion schedulers
From: John Heffner <hidden>
Date: 2005-03-15 22:16:19
From: John Heffner <hidden>
Date: 2005-03-15 22:16:19
This fixes a null pointer dereference when closing listen sockets. -John ===== include/net/tcp.h 1.107 vs 1.108 =====
--- 1.107/include/net/tcp.h Tue Mar 15 15:12:54 2005
+++ 1.108/include/net/tcp.h Tue Mar 15 17:09:48 2005@@ -1219,7 +1219,7 @@ static inline void tcp_set_ca_state(struct tcp_sock *tp, u8 ca_state) { - if (tp->ca_proto->set_state) + if (tp->ca_proto && tp->ca_proto->set_state) tp->ca_proto->set_state(tp, ca_state); tp->ca_state = ca_state; }