diff options
Diffstat (limited to 'src/starter')
-rw-r--r-- | src/starter/starter.c | 2 | ||||
-rw-r--r-- | src/starter/starterstroke.c | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/starter/starter.c b/src/starter/starter.c index c70fadc3d..4b49d15b9 100644 --- a/src/starter/starter.c +++ b/src/starter/starter.c @@ -338,8 +338,8 @@ int main (int argc, char **argv) if (starter_pluto_pid()) { starter_whack_del_conn(conn); - conn->state = STATE_TO_ADD; } + conn->state = STATE_TO_ADD; } } for (ca = cfg->ca_first; ca; ca = ca->next) diff --git a/src/starter/starterstroke.c b/src/starter/starterstroke.c index c20e7f6e3..d271d4018 100644 --- a/src/starter/starterstroke.c +++ b/src/starter/starterstroke.c @@ -132,7 +132,12 @@ int starter_stroke_add_conn(starter_conn_t *conn) int starter_stroke_del_conn(starter_conn_t *conn) { - return 0; + stroke_msg_t msg; + + msg.type = STR_DEL_CONN; + msg.length = offsetof(stroke_msg_t, buffer); + msg.install.name = push_string(&msg, connection_name(conn)); + return send_stroke_msg(&msg); } int starter_stroke_route_conn(starter_conn_t *conn) |