diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-09-08 01:31:47 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-09-08 01:31:47 +0000 |
commit | 95545d3c827d6ae9e32361036c6861b36a57bc17 (patch) | |
tree | 90f230d2c5368a7e472bbc6f8302570675fcba27 /usr.sbin/traceroute6 | |
parent | 9157eb9d650fced7fb37818a2ae8c621b4a05c68 (diff) |
socklen_t audit. from deraadt, sync w/kame
Diffstat (limited to 'usr.sbin/traceroute6')
-rw-r--r-- | usr.sbin/traceroute6/traceroute6.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c index 007168e062d..74148d98dc9 100644 --- a/usr.sbin/traceroute6/traceroute6.c +++ b/usr.sbin/traceroute6/traceroute6.c @@ -1,5 +1,5 @@ -/* $OpenBSD: traceroute6.c,v 1.28 2002/08/30 07:23:50 itojun Exp $ */ -/* $KAME: traceroute6.c,v 1.60 2002/08/30 04:01:58 onoe Exp $ */ +/* $OpenBSD: traceroute6.c,v 1.29 2002/09/08 01:31:46 itojun Exp $ */ +/* $KAME: traceroute6.c,v 1.61 2002/09/08 01:28:05 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -783,7 +783,8 @@ main(argc, argv) freeaddrinfo(res); } else { struct sockaddr_in6 Nxt; - int dummy, len; + int dummy; + socklen_t len; Nxt = Dst; Nxt.sin6_port = htons(DUMMY_PORT); @@ -819,7 +820,7 @@ main(argc, argv) } { - int len; + socklen_t len; len = sizeof(Src); if (getsockname(sndsock, (struct sockaddr *)&Src, &len) < 0) { |