Explicitly cast from strict_t to crl_policy_t
authorMartin Willi <martin@revosec.ch>
Mon, 14 May 2012 12:11:54 +0000 (14:11 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 14 May 2012 12:11:54 +0000 (14:11 +0200)
src/starter/starterstroke.c

index 2b6f55b..c28db5c 100644 (file)
@@ -247,7 +247,7 @@ int starter_stroke_add_conn(starter_config_t *cfg, starter_conn_t *conn)
        msg.add_conn.ipcomp = (conn->policy & POLICY_COMPRESS) != 0;
        msg.add_conn.install_policy = conn->install_policy;
        msg.add_conn.aggressive = conn->aggressive;
-       msg.add_conn.crl_policy = cfg->setup.strictcrlpolicy;
+       msg.add_conn.crl_policy = (crl_policy_t)cfg->setup.strictcrlpolicy;
        msg.add_conn.unique = cfg->setup.uniqueids;
        msg.add_conn.algorithms.ike = push_string(&msg, conn->ike);
        msg.add_conn.algorithms.esp = push_string(&msg, conn->esp);