summaryrefslogtreecommitdiff
path: root/package/ipsec-tools/patches/patch-src_racoon_racoonctl_c
blob: d5d6267c619077198e6825116e6c5946c643c9bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- ipsec-tools-0.7.2.orig/src/racoon/racoonctl.c	2009-04-20 15:32:57.000000000 +0200
+++ ipsec-tools-0.7.2/src/racoon/racoonctl.c	2009-05-29 15:57:45.600377208 +0200
@@ -785,7 +785,7 @@ f_vpnc(ac, av)
 		errx(1, "cannot read source address");
 
 	/* We get "ip[port]" strip the port */
-	if ((idx = index(srcaddr, '[')) == NULL) 
+	if ((idx = strchr(srcaddr, '[')) == NULL) 
 		errx(1, "unexpected source address format");
 	*idx = '\0';