diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/ip6opt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/net/ip6opt.c b/lib/libc/net/ip6opt.c index c2d292f..db3f8ce 100644 --- a/lib/libc/net/ip6opt.c +++ b/lib/libc/net/ip6opt.c @@ -199,8 +199,7 @@ inet6_option_alloc(struct cmsghdr *cmsg, int datalen, int multx, int plusy) /* calculate pad length before the option. */ off = bp - (u_char *)eh; - padlen = roundup2(off % multx, multx) - - (off % multx); + padlen = roundup2(off % multx, multx) - (off % multx); padlen += plusy; padlen %= multx; /* keep the pad as short as possible */ /* insert padding */ |