]> git.ipfire.org Git - thirdparty/strongswan.git/commit
mem-pool: Reject the creation of unintentionally empty pools
authorTobias Brunner <tobias@strongswan.org>
Fri, 12 Apr 2024 12:14:11 +0000 (14:14 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 15 Apr 2024 07:50:41 +0000 (09:50 +0200)
commit5f99a28381735cdc040e6092311062b4a88d67f2
treebbc72a1fb87994582779288025d277a468ea852a
parentafeac365fd0a29cbdda312284df0ea877ad1c886
mem-pool: Reject the creation of unintentionally empty pools

If a base address is configured, we don't expect the pool to be empty,
so reject the creation (e.g. with the broadcast address as base).

References strongswan/strongswan#2205
src/libcharon/attributes/mem_pool.c
src/libcharon/plugins/load_tester/load_tester_config.c
src/libcharon/tests/suites/test_mem_pool.c