summaryrefslogtreecommitdiff
path: root/package/openssh/patches/patch-channels_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-channels_c
parent418f934071ec5fc3afc1540df2c2ed27b676f306 (diff)
parentbb813d480b00ed42f1e59b760b6433f4ad96bcde (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/openssh/patches/patch-channels_c')
-rw-r--r--package/openssh/patches/patch-channels_c29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/openssh/patches/patch-channels_c b/package/openssh/patches/patch-channels_c
new file mode 100644
index 000000000..3712809e4
--- /dev/null
+++ b/package/openssh/patches/patch-channels_c
@@ -0,0 +1,29 @@
+--- openssh-5.2p1.orig/channels.c 2009-02-14 06:28:21.000000000 +0100
++++ openssh-5.2p1/channels.c 2009-09-18 12:29:28.000000000 +0200
+@@ -411,7 +411,7 @@ channel_free(Channel *c)
+ if (cc->abandon_cb != NULL)
+ cc->abandon_cb(c, cc->ctx);
+ TAILQ_REMOVE(&c->status_confirms, cc, entry);
+- bzero(cc, sizeof(*cc));
++ memset(cc, 0, sizeof(*cc));
+ xfree(cc);
+ }
+ if (c->filter_cleanup != NULL && c->filter_ctx != NULL)
+@@ -2447,7 +2447,7 @@ channel_input_status_confirm(int type, u
+ return;
+ cc->cb(type, c, cc->ctx);
+ TAILQ_REMOVE(&c->status_confirms, cc, entry);
+- bzero(cc, sizeof(*cc));
++ memset(cc, 0, sizeof(*cc));
+ xfree(cc);
+ }
+
+@@ -2941,7 +2941,7 @@ channel_connect_ctx_free(struct channel_
+ xfree(cctx->host);
+ if (cctx->aitop)
+ freeaddrinfo(cctx->aitop);
+- bzero(cctx, sizeof(*cctx));
++ memset(cctx, 0, sizeof(*cctx));
+ cctx->host = NULL;
+ cctx->ai = cctx->aitop = NULL;
+ }