1
0

patch-openbsd-compat_port-tun_c 471 B

1234567891011
  1. --- openssh-5.6p1.orig/openbsd-compat/port-tun.c 2010-08-10 04:47:42.000000000 +0200
  2. +++ openssh-5.6p1/openbsd-compat/port-tun.c 2011-01-27 18:16:39.000000000 +0100
  3. @@ -215,7 +215,7 @@ sys_tun_infilter(struct Channel *c, char
  4. if (len <= 0 || len > (int)(sizeof(rbuf) - sizeof(*af)))
  5. return (-1);
  6. ptr = (char *)&rbuf[0];
  7. - bcopy(buf, ptr + sizeof(u_int32_t), len);
  8. + memcpy(ptr + sizeof(u_int32_t), buf, len);
  9. len += sizeof(u_int32_t);
  10. af = (u_int32_t *)ptr;