diff options
author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2006-02-27 18:28:00 -0800 |
---|---|---|
committer | Chris Wright <chrisw@sous-sol.org> | 2006-03-05 11:07:17 -0800 |
commit | 5a6a280d035bae8752c7bd00671132357eba0a02 (patch) | |
tree | aaa997014d4ee4a7c174d1ba3e49c1b88f1966eb | |
parent | ce484abb75977cce40dabe3fc8ed67fe4f0f7a64 (diff) |
[PATCH] Don't reset rskq_defer_accept in reqsk_queue_alloc
In 295f7324ff8d9ea58b4d3ec93b1aaa1d80e048a9 I moved defer_accept from
tcp_sock to request_queue and mistakingly reset it at reqsl_queue_alloc, causing
calls to setsockopt(TCP_DEFER_ACCEPT ) to be lost after bind, the fix is to
remove the zeroing of rskq_defer_accept from reqsl_queue_alloc.
Thanks to Alexandra N. Kossovsky <Alexandra.Kossovsky@oktetlabs.ru> for
reporting and testing the suggested fix.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
-rw-r--r-- | net/core/request_sock.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/request_sock.c b/net/core/request_sock.c index b8203de5ff07..98f0fc923f91 100644 --- a/net/core/request_sock.c +++ b/net/core/request_sock.c @@ -52,7 +52,6 @@ int reqsk_queue_alloc(struct request_sock_queue *queue, get_random_bytes(&lopt->hash_rnd, sizeof(lopt->hash_rnd)); rwlock_init(&queue->syn_wait_lock); queue->rskq_accept_head = queue->rskq_accept_head = NULL; - queue->rskq_defer_accept = 0; lopt->nr_table_entries = nr_table_entries; write_lock_bh(&queue->syn_wait_lock); |