]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/ipv6/tcp_ipv6.c
[IPV6] TCPMD5: Fix deleting key operation.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Wed, 21 Nov 2007 01:31:23 +0000 (17:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Nov 2007 01:31:23 +0000 (17:31 -0800)
commit77adefdc9863d63f8d8bdc6a9adcdf9a6b0e2410
tree4fe2532ad5ab2e9db497cf416acd5db634a4cd6a
parentaacbe8c8800adfea42eb754396c6ebcd992cb36a
[IPV6] TCPMD5: Fix deleting key operation.

Due to the bug, refcnt for md5sig pool was leaked when
an user try to delete a key if we have more than one key.
In addition to the leakage, we returned incorrect return
result value for userspace.

This fix should close Bug #9418, reported by <ming-baini@163.com>.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/tcp_ipv6.c