diff options
| -rw-r--r-- | usr.sbin/pim6dd/mld6.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pim6dd/mld6.c b/usr.sbin/pim6dd/mld6.c index 91859357b374..47634336e061 100644 --- a/usr.sbin/pim6dd/mld6.c +++ b/usr.sbin/pim6dd/mld6.c @@ -422,10 +422,11 @@ make_mld6_msg(type, code, src, dst, group, ifindex, delay, datalen, alert) log(LOG_ERR, 0, "inet6_opt_append(0) failed"); if ((hbhlen = inet6_opt_finish(NULL, 0, hbhlen)) == -1) log(LOG_ERR, 0, "inet6_opt_finish(0) failed"); + ctllen += CMSG_SPACE(hbhlen); #else /* old advanced API */ - hbhlen = inet6_option_space(sizeof(raopt)); + hbhlen = inet6_option_space(sizeof(raopt)); + ctllen += hbhlen; #endif - ctllen += CMSG_SPACE(hbhlen); } /* extend ancillary data space (if necessary) */ if (ctlbuflen < ctllen) { |
