diff options
author | 2002-09-08 01:31:46 +0000 | |
---|---|---|
committer | 2002-09-08 01:31:46 +0000 | |
commit | 61e441e8df5f4c8aa2415d2eb41811728bd54bfb (patch) | |
tree | 6a64082837b04952beca8f467d9a4c5a92037cbe | |
parent | no , at end of enum (diff) | |
download | wireguard-openbsd-61e441e8df5f4c8aa2415d2eb41811728bd54bfb.tar.xz wireguard-openbsd-61e441e8df5f4c8aa2415d2eb41811728bd54bfb.zip |
socklen_t audit. from deraadt, sync w/kame
-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) { |