summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
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 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)