ports/131976: security/racoon2 not worked simultaneously ikev1 and ikev2 [PATCH]

Dmitry dmitry2006 at yandex.ru
Sun Feb 22 16:00:08 UTC 2009


>Number:         131976
>Category:       ports
>Synopsis:       security/racoon2 not worked simultaneously ikev1 and ikev2 [PATCH]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 22 16:00:07 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry
>Release:        FreeBSD 7.1-STABLE amd64
>Organization:
>Environment:
FreeBSD *** 7.1-STABLE FreeBSD 7.1-STABLE #0: Sat Feb 21 04:30:04 YEKT 2009     root@***:/usr/src/sys/GENERIC_  amd64
>Description:
Before I made the corrections I have not worked simultaneously ikev1 and ikev2 
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- lib/cfsetup.c.orig	2007-12-05 12:26:10.000000000 +0500
+++ lib/cfsetup.c	2008-11-12 14:44:48.000000000 +0500
@@ -3636,15 +3637,15 @@
 			    "invalid kmp type %s\n", rct2str(proto));
 			return -1;
 		}
-		if (!kmp || !kmp->peers_ipaddr)
-			return -1;
-		for (al = kmp->peers_ipaddr; al != 0; al = al->next) {
-			if (al->type != RCT_ADDR_INET)
-				continue;
-			if (rcs_cmpsa_wop(al->a.ipaddr, s) != 0)
-				continue;
-			src = n;
-			goto found;
+		if (kmp && kmp->peers_ipaddr) {
+			for (al = kmp->peers_ipaddr; al != 0; al = al->next) {
+				if (al->type != RCT_ADDR_INET)
+					continue;
+				if (rcs_cmpsa_wop(al->a.ipaddr, s) != 0)
+					continue;
+				src = n;
+				goto found;
+			}
 		}
 	}
   found:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list