patch-openbsd-compat_port-tun_c 521 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- openssh-5.1p1.orig/openbsd-compat/port-tun.c 2008-05-19 07:28:36.000000000 +0200
  3. +++ openssh-5.1p1/openbsd-compat/port-tun.c 2008-10-14 10:20:42.000000000 +0200
  4. @@ -213,7 +213,7 @@ sys_tun_infilter(struct Channel *c, char
  5. if (len <= 0 || len > (int)(sizeof(rbuf) - sizeof(*af)))
  6. return (-1);
  7. ptr = (char *)&rbuf[0];
  8. - bcopy(buf, ptr + sizeof(u_int32_t), len);
  9. + memcpy(ptr + sizeof(u_int32_t), buf, len);
  10. len += sizeof(u_int32_t);
  11. af = (u_int32_t *)ptr;