kernel-libipsec: Don't ignore policies of type != POLICY_IPSEC
[strongswan.git] / src / libcharon / plugins / kernel_libipsec / kernel_libipsec_ipsec.c
index 8458cd1..d0744e3 100644 (file)
@@ -523,11 +523,6 @@ METHOD(kernel_ipsec_t, add_policy, status_t,
        policy_entry_t *policy, *found = NULL;
        status_t status;
 
        policy_entry_t *policy, *found = NULL;
        status_t status;
 
-       if (type != POLICY_IPSEC)
-       {
-               return SUCCESS;
-       }
-
        status = ipsec->policies->add_policy(ipsec->policies, src, dst, src_ts,
                                                                dst_ts, direction, type, sa, mark, priority);
        if (status != SUCCESS)
        status = ipsec->policies->add_policy(ipsec->policies, src, dst, src_ts,
                                                                dst_ts, direction, type, sa, mark, priority);
        if (status != SUCCESS)