diff options
Diffstat (limited to 'src/libipsec/ipsec_policy_mgr.c')
-rw-r--r-- | src/libipsec/ipsec_policy_mgr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libipsec/ipsec_policy_mgr.c b/src/libipsec/ipsec_policy_mgr.c index 02dc59d65..e2eaba014 100644 --- a/src/libipsec/ipsec_policy_mgr.c +++ b/src/libipsec/ipsec_policy_mgr.c @@ -22,7 +22,7 @@ #include <collections/linked_list.h> /** Base priority for installed policies */ -#define PRIO_BASE 512 +#define PRIO_BASE 384 typedef struct private_ipsec_policy_mgr_t private_ipsec_policy_mgr_t; @@ -88,6 +88,9 @@ static u_int32_t calculate_priority(policy_priority_t policy_priority, priority <<= 1; /* fall-through */ case POLICY_PRIORITY_DEFAULT: + priority <<= 1; + /* fall-through */ + case POLICY_PRIORITY_PASS: break; } /* calculate priority based on selector size, small size = high prio */ |