summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CREDITS1
-rw-r--r--ChangeLog5
-rw-r--r--packet.c4
3 files changed, 8 insertions, 2 deletions
diff --git a/CREDITS b/CREDITS
index ac992e300..03910b301 100644
--- a/CREDITS
+++ b/CREDITS
@@ -5,6 +5,7 @@ Theo de Raadt, and Dug Song - Creators of OpenSSH
5 5
6Andrew Stribblehill <a.d.stribblehill@durham.ac.uk> - Bugfixes 6Andrew Stribblehill <a.d.stribblehill@durham.ac.uk> - Bugfixes
7Andre Lucas <andre.lucas@dial.pipex.com> - build, login and many other fixes 7Andre Lucas <andre.lucas@dial.pipex.com> - build, login and many other fixes
8Andy Sloane <andy@guildsoftware.com> - bugfixes
8Ben Taylor <bent@clark.net> - Solaris debugging and fixes 9Ben Taylor <bent@clark.net> - Solaris debugging and fixes
9Chip Salzenberg <chip@valinux.com> - Assorted patches 10Chip Salzenberg <chip@valinux.com> - Assorted patches
10Chris Saia <csaia@wtower.com> - SuSE packaging 11Chris Saia <csaia@wtower.com> - SuSE packaging
diff --git a/ChangeLog b/ChangeLog
index aec7a6d86..afc51024a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
120000123
2 - OpenBSD CVS:
3 - [packet.c]
4 getsockname() requires initialized tolen; andy@guildsoftware.com
5
120000122 620000122
2 - Fix compilation of bsd-snprintf.c on Solaris, fix from Ben Taylor 7 - Fix compilation of bsd-snprintf.c on Solaris, fix from Ben Taylor
3 <bent@clark.net> 8 <bent@clark.net>
diff --git a/packet.c b/packet.c
index 3202e7e7b..d0f3a895a 100644
--- a/packet.c
+++ b/packet.c
@@ -15,7 +15,7 @@
15 */ 15 */
16 16
17#include "includes.h" 17#include "includes.h"
18RCSID("$Id: packet.c,v 1.10 2000/01/22 08:47:21 damien Exp $"); 18RCSID("$Id: packet.c,v 1.11 2000/01/22 22:38:00 damien Exp $");
19 19
20#include "xmalloc.h" 20#include "xmalloc.h"
21#include "buffer.h" 21#include "buffer.h"
@@ -136,7 +136,7 @@ int
136packet_connection_is_ipv4() 136packet_connection_is_ipv4()
137{ 137{
138 struct sockaddr_storage to; 138 struct sockaddr_storage to;
139 socklen_t tolen; 139 socklen_t tolen = sizeof(to);
140 140
141 memset(&to, 0, sizeof(to)); 141 memset(&to, 0, sizeof(to));
142 if (getsockname(connection_out, (struct sockaddr *)&to, &tolen) < 0) 142 if (getsockname(connection_out, (struct sockaddr *)&to, &tolen) < 0)