Module Name:    src
Committed By:   vanhu
Date:           Wed Aug 19 13:54:07 UTC 2009

Modified Files:
        src/crypto/dist/ipsec-tools/src/racoon: remoteconf.c

Log Message:
fixed address check in rmconf_match_type(), just check address with wildcard 
port


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 \
    src/crypto/dist/ipsec-tools/src/racoon/remoteconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/dist/ipsec-tools/src/racoon/remoteconf.c
diff -u src/crypto/dist/ipsec-tools/src/racoon/remoteconf.c:1.16 src/crypto/dist/ipsec-tools/src/racoon/remoteconf.c:1.17
--- src/crypto/dist/ipsec-tools/src/racoon/remoteconf.c:1.16	Wed Aug 19 12:20:02 2009
+++ src/crypto/dist/ipsec-tools/src/racoon/remoteconf.c	Wed Aug 19 13:54:07 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: remoteconf.c,v 1.16 2009/08/19 12:20:02 tteras Exp $	*/
+/*	$NetBSD: remoteconf.c,v 1.17 2009/08/19 13:54:07 vanhu Exp $	*/
 
 /* Id: remoteconf.c,v 1.38 2006/05/06 15:52:44 manubsd Exp */
 
@@ -209,7 +209,7 @@
 	/* Check address */
 	if (rmsel->remote != NULL) {
 		if (rmconf->remote->sa_family != AF_UNSPEC) {
-			if (cmpsaddr(rmsel->remote, rmconf->remote) != 0)
+			if (cmpsaddr(rmsel->remote, rmconf->remote) == CMPSADDR_MISMATCH)
 				return MATCH_NONE;
 
 			/* Address matched */

Reply via email to