fixed bad cast which resulted in a crash on "ipsec update"
authorMartin Willi <martin@strongswan.org>
Fri, 5 Oct 2007 09:13:03 +0000 (09:13 -0000)
committerMartin Willi <martin@strongswan.org>
Fri, 5 Oct 2007 09:13:03 +0000 (09:13 -0000)
src/charon/control/interfaces/stroke_interface.c

index fce9bfe..66ed423 100755 (executable)
@@ -699,7 +699,8 @@ destroy_hosts:
 static void stroke_del_conn(stroke_msg_t *msg, FILE *out)
 {
        iterator_t *peer_iter, *child_iter;
-       peer_cfg_t *peer, *child;
+       peer_cfg_t *peer;
+       child_cfg_t *child;
        
        pop_string(msg, &(msg->del_conn.name));
        DBG1(DBG_CFG, "received stroke: delete connection '%s'", msg->del_conn.name);