dccp: fix memory leak during tear-down of unsuccessful connection request
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Sun, 12 Mar 2017 23:01:30 +0000 (00:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:04:31 +0000 (14:04 +0200)
commit3710b15ed5301d3af5e274f244f135206b794100
tree021ef1cee96c933d6a171e13f32025dc737fbeb5
parentcb93d3f48930b2e435614570613e7c1d7810a6d1
dccp: fix memory leak during tear-down of unsuccessful connection request

commit 72ef9c4125c7b257e3a714d62d778ab46583d6a3 upstream.

This patch fixes a memory leak, which happens if the connection request
is not fulfilled between parsing the DCCP options and handling the SYN
(because e.g. the backlog is full), because we forgot to free the
list of ack vectors.

Reported-by: Jianwen Ji <jiji@redhat.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/dccp/ccids/ccid2.c