diff options
| author | Hans Dedecker | 2019-01-11 09:16:54 +0000 |
|---|---|---|
| committer | Hans Dedecker | 2019-01-11 09:19:46 +0000 |
| commit | b079733bee3a616c765383be35656693627716be (patch) | |
| tree | 8a53bb305cea3d9b9d7ba1256cc62991387da61b | |
| parent | 41494da588b543574196a3cd82eee50115b87be7 (diff) | |
| download | odhcp6c-b079733bee3a616c765383be35656693627716be.tar.gz | |
dhcpv6: set cnt to correct IOV enum
Make the code less error prone by setting cnt to IOV_HDR_IA_NA when
sending an INFORMATION REQUEST message
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
| -rw-r--r-- | src/dhcpv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 4cb4878..857cbe1 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -498,7 +498,7 @@ static void dhcpv6_send(enum dhcpv6_msg type, uint8_t trid[3], uint32_t ecs) size_t cnt = IOV_TOTAL; if (type == DHCPV6_MSG_INFO_REQ) - cnt = 8; + cnt = IOV_HDR_IA_NA; // Disable IAs if not used if (type != DHCPV6_MSG_SOLICIT && ia_na_len == 0) |