diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |