commit | a3bdb549e30e7a263f7a589747c40e9c50110315 | [log] [tgz] |
---|---|---|
author | Dmitry Popov <dp@highloadlab.com> | Thu Jul 29 01:59:36 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Fri Jul 30 23:04:07 2010 -0700 |
tree | ac14f82ebe454fdbc00c3f1298a293e03e1f1592 | |
parent | eeaf61d8891f9c9ed12c1a667e72bf83f0857954 [diff] |
tcp: cookie transactions setsockopt memory leak There is a bug in do_tcp_setsockopt(net/ipv4/tcp.c), TCP_COOKIE_TRANSACTIONS case. In some cases (when tp->cookie_values == NULL) new tcp_cookie_values structure can be allocated (at cvp), but not bound to tp->cookie_values. So a memory leak occurs. Signed-off-by: Dmitry Popov <dp@highloadlab.com> Signed-off-by: David S. Miller <davem@davemloft.net>