diff options
-rw-r--r-- | CREDITS | 1 | ||||
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | packet.c | 4 |
3 files changed, 8 insertions, 2 deletions
@@ -5,6 +5,7 @@ Theo de Raadt, and Dug Song - Creators of OpenSSH | |||
5 | 5 | ||
6 | Andrew Stribblehill <a.d.stribblehill@durham.ac.uk> - Bugfixes | 6 | Andrew Stribblehill <a.d.stribblehill@durham.ac.uk> - Bugfixes |
7 | Andre Lucas <andre.lucas@dial.pipex.com> - build, login and many other fixes | 7 | Andre Lucas <andre.lucas@dial.pipex.com> - build, login and many other fixes |
8 | Andy Sloane <andy@guildsoftware.com> - bugfixes | ||
8 | Ben Taylor <bent@clark.net> - Solaris debugging and fixes | 9 | Ben Taylor <bent@clark.net> - Solaris debugging and fixes |
9 | Chip Salzenberg <chip@valinux.com> - Assorted patches | 10 | Chip Salzenberg <chip@valinux.com> - Assorted patches |
10 | Chris Saia <csaia@wtower.com> - SuSE packaging | 11 | Chris Saia <csaia@wtower.com> - SuSE packaging |
@@ -1,3 +1,8 @@ | |||
1 | 20000123 | ||
2 | - OpenBSD CVS: | ||
3 | - [packet.c] | ||
4 | getsockname() requires initialized tolen; andy@guildsoftware.com | ||
5 | |||
1 | 20000122 | 6 | 20000122 |
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> |
@@ -15,7 +15,7 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "includes.h" | 17 | #include "includes.h" |
18 | RCSID("$Id: packet.c,v 1.10 2000/01/22 08:47:21 damien Exp $"); | 18 | RCSID("$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 | |||
136 | packet_connection_is_ipv4() | 136 | packet_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) |