summaryrefslogtreecommitdiff
path: root/package/dropbear/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-23 18:11:31 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-23 18:11:31 +0200
commit6f63961c83bdb1791779975a36ebd28a0de247d6 (patch)
tree93be49e0091952442813487f806436b4c4eb846c /package/dropbear/patches
parent5246f3170f3a14ccb6335fc8d4701cf60274fae4 (diff)
bzero is obsolete, use memset
Diffstat (limited to 'package/dropbear/patches')
-rw-r--r--package/dropbear/patches/patch-svr-main_c15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/dropbear/patches/patch-svr-main_c b/package/dropbear/patches/patch-svr-main_c
new file mode 100644
index 000000000..eaf066158
--- /dev/null
+++ b/package/dropbear/patches/patch-svr-main_c
@@ -0,0 +1,15 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+
+ * bzero is obsolete, use memset
+
+--- dropbear-0.52.orig/svr-main.c 2008-11-11 15:09:03.000000000 +0100
++++ dropbear-0.52/svr-main.c 2009-05-23 16:13:30.569366604 +0200
+@@ -133,7 +133,7 @@ void main_noinetd() {
+ for (i = 0; i < MAX_UNAUTH_CLIENTS; i++) {
+ childpipes[i] = -1;
+ }
+- bzero(preauth_addrs, sizeof(preauth_addrs));
++ memset(preauth_addrs, 0, sizeof(preauth_addrs));
+
+ /* Set up the listening sockets */
+ listensockcount = listensockets(listensocks, MAX_LISTEN_ADDR, &maxsock);