summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-01-23 09:38:00 +1100
committerDamien Miller <djm@mindrot.org>2000-01-23 09:38:00 +1100
commit6fe375dee4f0c5b81026d7eb9dc00cf75645b241 (patch)
treeb4fa33214df36d62f29b91551154a0ad1d21edd3 /packet.c
parent1453785bb4cda1ff14508dbccd6dbbe9abbc6a63 (diff)
- OpenBSD CVS:
- [packet.c] getsockname() requires initialized tolen; andy@guildsoftware.com
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet.c b/packet.c
index 3202e7e7..d0f3a895 100644
--- a/packet.c
+++ b/packet.c
@@ -15,7 +15,7 @@
*/
#include "includes.h"
-RCSID("$Id: packet.c,v 1.10 2000/01/22 08:47:21 damien Exp $");
+RCSID("$Id: packet.c,v 1.11 2000/01/22 22:38:00 damien Exp $");
#include "xmalloc.h"
#include "buffer.h"
@@ -136,7 +136,7 @@ int
packet_connection_is_ipv4()
{
struct sockaddr_storage to;
- socklen_t tolen;
+ socklen_t tolen = sizeof(to);
memset(&to, 0, sizeof(to));
if (getsockname(connection_out, (struct sockaddr *)&to, &tolen) < 0)