summaryrefslogtreecommitdiffstats
path: root/freebsd/sbin/ping6
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sbin/ping6')
-rw-r--r--freebsd/sbin/ping6/ping6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/freebsd/sbin/ping6/ping6.c b/freebsd/sbin/ping6/ping6.c
index 750835a5..1946f0a0 100644
--- a/freebsd/sbin/ping6/ping6.c
+++ b/freebsd/sbin/ping6/ping6.c
@@ -1841,7 +1841,7 @@ pr_ip6opt(void *extbuf, size_t bufsize)
struct ip6_hbh *ext;
int currentlen;
u_int8_t type;
- socklen_t extlen, len, origextlen;
+ socklen_t extlen, len;
void *databuf;
size_t offset;
u_int16_t value2;
@@ -1857,7 +1857,6 @@ pr_ip6opt(void *extbuf, size_t bufsize)
* subtract the size of a cmsg structure from the buffer size.
*/
if (bufsize < (extlen + CMSG_SPACE(0))) {
- origextlen = extlen;
extlen = bufsize - CMSG_SPACE(0);
warnx("options truncated, showing only %u (total=%u)",
(unsigned int)(extlen / 8 - 1),