--- embedaddon/ipsec-tools/src/racoon/isakmp.c 2012/02/21 22:39:10 1.1.1.1 +++ embedaddon/ipsec-tools/src/racoon/isakmp.c 2014/06/15 16:37:12 1.1.1.2 @@ -1,4 +1,4 @@ -/* $NetBSD: isakmp.c,v 1.71 2011/03/15 13:20:14 vanhu Exp $ */ +/* $NetBSD: isakmp.c,v 1.71.2.2 2012/08/29 08:55:26 tteras Exp $ */ /* Id: isakmp.c,v 1.74 2006/05/07 21:32:59 manubsd Exp */ @@ -2186,7 +2186,7 @@ isakmp_post_acquire(iph2, iph1hint, nopassive) "because of passive mode, " "ignore the acquire message for %s.\n", saddrwop2str(iph2->dst)); - return 0; + return -1; } /* @@ -2943,7 +2943,7 @@ copy_ph1addresses(iph1, rmconf, remote, local) port = myaddr_getsport(iph1->local); if (port == 0) port = PORT_ISAKMP; - set_port(iph1->local, PORT_ISAKMP); + set_port(iph1->local, port); } #ifdef ENABLE_NATT