patch-src_racoon_racoonctl_c 491 B

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