aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter/starterstroke.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/starter/starterstroke.c')
-rw-r--r--src/starter/starterstroke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/starter/starterstroke.c b/src/starter/starterstroke.c
index 41f67c891..dc81acf8a 100644
--- a/src/starter/starterstroke.c
+++ b/src/starter/starterstroke.c
@@ -206,7 +206,7 @@ int starter_stroke_add_conn(starter_conn_t *conn)
}
else
{
- msg.add_conn.rekey.reauth = (conn->policy & POLICY_REAUTH);
+ msg.add_conn.rekey.reauth = (conn->policy & POLICY_DONT_REAUTH) == LEMPTY;
msg.add_conn.rekey.ipsec_lifetime = conn->sa_ipsec_life_seconds;
msg.add_conn.rekey.ike_lifetime = conn->sa_ike_life_seconds;
msg.add_conn.rekey.margin = conn->sa_rekey_margin;