patch-src_racoon_racoonctl_c 441 B

1234567891011
  1. --- ipsec-tools-0.8.0.orig/src/racoon/racoonctl.c 2010-11-12 10:08:26.000000000 +0100
  2. +++ ipsec-tools-0.8.0/src/racoon/racoonctl.c 2011-03-31 13:24:13.201808233 +0200
  3. @@ -693,7 +693,7 @@ f_vpnc(ac, av)
  4. errx(1, "cannot read source address");
  5. /* We get "ip[port]" strip the port */
  6. - if ((idx = index(srcaddr, '[')) == NULL)
  7. + if ((idx = strchr(srcaddr, '[')) == NULL)
  8. errx(1, "unexpected source address format");
  9. *idx = '\0';