diff options
author | 2000-01-22 20:20:28 +0000 | |
---|---|---|
committer | 2000-01-22 20:20:28 +0000 | |
commit | 78a51b36dd61c970170aca1bf884e85dfefa2d31 (patch) | |
tree | 71eceeaaf9ff88a4e75cfc7f2541e59c1e49249c | |
parent | Remove vga and wscons, not used yet due to openfirmware console. (diff) | |
download | wireguard-openbsd-78a51b36dd61c970170aca1bf884e85dfefa2d31.tar.xz wireguard-openbsd-78a51b36dd61c970170aca1bf884e85dfefa2d31.zip |
getsockname() requires initialized tolen; andy@guildsoftware.com
-rw-r--r-- | usr.bin/ssh/packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c index 7f7f888c2e7..1768f4ac73c 100644 --- a/usr.bin/ssh/packet.c +++ b/usr.bin/ssh/packet.c @@ -15,7 +15,7 @@ */ #include "includes.h" -RCSID("$Id: packet.c,v 1.20 2000/01/20 15:15:18 markus Exp $"); +RCSID("$Id: packet.c,v 1.21 2000/01/22 20:20:28 deraadt 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) |