summaryrefslogtreecommitdiff
path: root/package/openssh/patches/patch-openbsd-compat_port-tun_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-09-26 09:43:33 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-09-26 09:43:33 +0200
commitb90cc7f1ad47a02d811f45b1b6fa0c5fc5bf0edf (patch)
tree74a7f0dcea7f3c1c9e4d4edbfa8f52b2d2f38321 /package/openssh/patches/patch-openbsd-compat_port-tun_c
parent418f934071ec5fc3afc1540df2c2ed27b676f306 (diff)
parentbb813d480b00ed42f1e59b760b6433f4ad96bcde (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/openssh/patches/patch-openbsd-compat_port-tun_c')
-rw-r--r--package/openssh/patches/patch-openbsd-compat_port-tun_c13
1 files changed, 11 insertions, 2 deletions
diff --git a/package/openssh/patches/patch-openbsd-compat_port-tun_c b/package/openssh/patches/patch-openbsd-compat_port-tun_c
index bc6e0b1b3..c4eb11c4c 100644
--- a/package/openssh/patches/patch-openbsd-compat_port-tun_c
+++ b/package/openssh/patches/patch-openbsd-compat_port-tun_c
@@ -1,6 +1,15 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- openssh-5.1p1.orig/openbsd-compat/port-tun.c 2008-05-19 07:28:36.000000000 +0200
-+++ openssh-5.1p1/openbsd-compat/port-tun.c 2008-10-14 10:20:42.000000000 +0200
+--- openssh-5.2p1.orig/openbsd-compat/port-tun.c 2008-05-19 07:28:36.000000000 +0200
++++ openssh-5.2p1/openbsd-compat/port-tun.c 2009-09-18 12:25:49.000000000 +0200
+@@ -67,7 +67,7 @@ sys_tun_open(int tun, int mode)
+ return (-1);
+ }
+
+- bzero(&ifr, sizeof(ifr));
++ memset(&ifr, 0, sizeof(ifr));
+
+ if (mode == SSH_TUNMODE_ETHERNET) {
+ ifr.ifr_flags = IFF_TAP;
@@ -213,7 +213,7 @@ sys_tun_infilter(struct Channel *c, char
if (len <= 0 || len > (int)(sizeof(rbuf) - sizeof(*af)))
return (-1);