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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Mar 2017 05:00:42 +0000 (22:00 -0700)
commit72ef9c4125c7b257e3a714d62d778ab46583d6a3
tree0e9a25509b018b30792815f4a988e2c695dbf64b
parentb20e2d54789c6acbf6bd0efdbec2cf5fa4d90ef1
dccp: fix memory leak during tear-down of unsuccessful connection request

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>
net/dccp/ccids/ccid2.c