1
0

patch-src_racoon_pfkey_c 600 B

1234567891011121314151617
  1. --- ipsec-tools-0.8.0.orig/src/racoon/pfkey.c 2011-03-15 14:20:14.000000000 +0100
  2. +++ ipsec-tools-0.8.0/src/racoon/pfkey.c 2011-03-31 13:24:03.781819000 +0200
  3. @@ -3855,12 +3855,12 @@ addnewsp(mhp, local, remote)
  4. struct sockaddr *paddr;
  5. paddr = (struct sockaddr *)(xisr + 1);
  6. - bcopy(paddr, &(*p_isr)->saidx.src,
  7. + memcpy(&(*p_isr)->saidx.src, paddr,
  8. sysdep_sa_len(paddr));
  9. paddr = (struct sockaddr *)((caddr_t)paddr
  10. + sysdep_sa_len(paddr));
  11. - bcopy(paddr, &(*p_isr)->saidx.dst,
  12. + memcpy(&(*p_isr)->saidx.dst, paddr,
  13. sysdep_sa_len(paddr));
  14. }