aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-11-11 18:50:26 +0100
committerTobias Brunner <tobias@strongswan.org>2014-11-11 19:00:02 +0100
commit8ab1b29da4c51bf92df0030f3a17df0ceee1ea06 (patch)
treefdeb23cfed223ae86b440b64a245ddb6db55f66c /src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c
parentfc02a9d4b9e15b35cff67c40c21b10e3ac1044b8 (diff)
downloadstrongswan-8ab1b29da4c51bf92df0030f3a17df0ceee1ea06.tar.bz2
strongswan-8ab1b29da4c51bf92df0030f3a17df0ceee1ea06.tar.xz
mem-pool: Fix potential memory leak and lost leases when reassigning leases
If no offline leases are available for the current client and assigning online leases is disabled, and if all IPs of the pool have already been assigned to clients we look for offline leases that previously were assigned to other clients. In case the current client has online leases the previous code would replace the existing mapping entry and besides resulting in a memory leak the online leases would be lost forever (even if the client later releases the addresses). If this happens repeatedly the number of available addresses would decrease even though the total number of online and offline leases seen in `ipsec leases` would indicate that there are free addresses available. Fixes #764.
Diffstat (limited to 'src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c')
0 files changed, 0 insertions, 0 deletions