diff -Nur racoon2-20070817cvs/iked/ikev2.c racoon2-patched/iked/ikev2.c --- racoon2-20070817cvs/iked/ikev2.c 2007-08-17 10:57:42.000000000 +0900 +++ racoon2-patched/iked/ikev2.c 2007-08-17 11:52:12.000000000 +0900 @@ -2446,8 +2446,8 @@ if (!pkt) goto fail; - if (ikev2_transmit_response(ike_sa, pkt, child_sa->local, - child_sa->remote) != 0) + if (ikev2_transmit_response(ike_sa, pkt, child_sa->parent->local, + child_sa->parent->remote) != 0) goto fail; pkt = 0; @@ -3567,7 +3567,7 @@ if (!pkt) goto fail; - if (ikev2_transmit_response(ike_sa, pkt, child_sa->local, child_sa->remote) != 0) + if (ikev2_transmit_response(ike_sa, pkt, child_sa->parent->local, child_sa->parent->remote) != 0) goto fail; done: