patch-src_racoon_pfkey_c 635 B

123456789101112131415161718
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- ipsec-tools-0.7.2.orig/src/racoon/pfkey.c 2008-12-08 07:06:24.000000000 +0100
  3. +++ ipsec-tools-0.7.2/src/racoon/pfkey.c 2009-05-29 15:48:49.201433105 +0200
  4. @@ -3008,12 +3008,12 @@ addnewsp(mhp)
  5. struct sockaddr *paddr;
  6. paddr = (struct sockaddr *)(xisr + 1);
  7. - bcopy(paddr, &(*p_isr)->saidx.src,
  8. + memcpy(&(*p_isr)->saidx.src, paddr,
  9. sysdep_sa_len(paddr));
  10. paddr = (struct sockaddr *)((caddr_t)paddr
  11. + sysdep_sa_len(paddr));
  12. - bcopy(paddr, &(*p_isr)->saidx.dst,
  13. + memcpy(&(*p_isr)->saidx.dst, paddr,
  14. sysdep_sa_len(paddr));
  15. }