summaryrefslogtreecommitdiff
path: root/package/openssh/patches/patch-openbsd-compat_port-tun_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-04-21 20:57:35 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-04-21 20:57:35 +0200
commit4dc2822fa71e8e3d3ab004c8c14867607bb4de06 (patch)
tree21e5b36849ea23f526cc58578a540de3882d7376 /package/openssh/patches/patch-openbsd-compat_port-tun_c
parent8f1eff09d5706cbea36ddf1bfc4661579f688853 (diff)
parent38910b0bc0393c60da90e1b2540e3d4c5858dae9 (diff)
resolve merge conflict
Diffstat (limited to 'package/openssh/patches/patch-openbsd-compat_port-tun_c')
-rw-r--r--package/openssh/patches/patch-openbsd-compat_port-tun_c11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/openssh/patches/patch-openbsd-compat_port-tun_c b/package/openssh/patches/patch-openbsd-compat_port-tun_c
new file mode 100644
index 000000000..a9ed6434b
--- /dev/null
+++ b/package/openssh/patches/patch-openbsd-compat_port-tun_c
@@ -0,0 +1,11 @@
+--- openssh-5.5p1.orig/openbsd-compat/port-tun.c 2008-05-19 07:28:36.000000000 +0200
++++ openssh-5.5p1/openbsd-compat/port-tun.c 2010-04-21 20:14:00.000000000 +0200
+@@ -213,7 +213,7 @@ sys_tun_infilter(struct Channel *c, char
+ if (len <= 0 || len > (int)(sizeof(rbuf) - sizeof(*af)))
+ return (-1);
+ ptr = (char *)&rbuf[0];
+- bcopy(buf, ptr + sizeof(u_int32_t), len);
++ memcpy(ptr + sizeof(u_int32_t), buf, len);
+ len += sizeof(u_int32_t);
+ af = (u_int32_t *)ptr;
+