From 58f5bf8da1f5dca44abc31f454ce651a6927cc85 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 6 Feb 2014 11:08:51 +0100 Subject: [PATCH] Fix fallout from userclass addition --- src/dhcpv6.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 4b1ba95..215f68c 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -429,19 +429,19 @@ static void dhcpv6_send(enum dhcpv6_msg type, uint8_t trid[3], uint32_t ecs) // Disable IAs if not used if (type != DHCPV6_MSG_SOLICIT) { - iov[7].iov_len = 0; + iov[9].iov_len = 0; if (ia_na_len == 0) - iov[9].iov_len = 0; + iov[11].iov_len = 0; } if (na_mode == IA_MODE_NONE) - iov[9].iov_len = 0; + iov[11].iov_len = 0; if (!(client_options & DHCPV6_ACCEPT_RECONFIGURE)) - iov[7].iov_len = 0; + iov[9].iov_len = 0; if (!(client_options & DHCPV6_CLIENT_FQDN)) - iov[8].iov_len = 0; + iov[10].iov_len = 0; struct sockaddr_in6 srv = {AF_INET6, htons(DHCPV6_SERVER_PORT), 0, ALL_DHCPV6_RELAYS, ifindex}; -- 2.25.1