diff options
author | Martin Willi <martin@revosec.ch> | 2013-06-13 13:34:12 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-06-13 13:37:50 +0200 |
commit | 246e2bed1d005386938fb6243ec97cf2cff7bd48 (patch) | |
tree | 1c7a43835b6f193f97954179d1e77863ef1ebb27 /src/libcharon/plugins/socket_default/socket_default_socket.c | |
parent | 44fb978169e99a7fa7c3f62a0e74157a886484b9 (diff) | |
download | strongswan-246e2bed1d005386938fb6243ec97cf2cff7bd48.tar.bz2 strongswan-246e2bed1d005386938fb6243ec97cf2cff7bd48.tar.xz |
Use subset matching instead of is_contained_in() to select a child_cfg
If one selector has a wider IP range than the other, but the other has a
wider port/protocol selector than the first one, none is completely contained
in the other. The check for a match using is_contained_in() therefore would
fail. Using get_subset() can handle such cases, fixing configuration selection.
Diffstat (limited to 'src/libcharon/plugins/socket_default/socket_default_socket.c')
0 files changed, 0 insertions, 0 deletions