[strongSwan-dev] [PATCH] libhydra: Use (un)registration retval during ipsec registration
Thomas Egerer
thomas.egerer at secunet.com
Fri Nov 7 15:03:04 CET 2014
Returning an unconditional true in kernel_ipsec_register makes it
impossible to detect the missing feature dependencies for
"kernel-ipsec". Failed kernel ipsec interface initialization turns charon
into a process that still starts up fine but fails to perform anything
that requires the kernel ipsec interface. This patch modifies both,
kernel interface and kernel ipsec interface such that failed ipsec
interface initialization results in a false return value.
Signed-off-by: Thomas Egerer <thomas.egerer at secunet.com>
---
src/libhydra/kernel/kernel_interface.c | 8 ++++++--
src/libhydra/kernel/kernel_interface.h | 11 +++++++++--
src/libhydra/kernel/kernel_ipsec.c | 7 ++++---
3 files changed, 19 insertions(+), 7 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libhydra-Use-un-registration-retval-during-ipsec-reg.patch
Type: text/x-patch
Size: 3049 bytes
Desc: not available
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20141107/d9314579/attachment.bin>
More information about the Dev
mailing list