Return -1 in case the msg type in the reconfigure message is invalid and
as such don't start sending renew messages.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
const void *opt, const void *end, _unused const struct sockaddr_in6 *from)
{
uint16_t otype, olen;
- uint8_t *odata, msg = DHCPV6_MSG_RENEW;
+ uint8_t *odata;
+ int msg = -1;
dhcpv6_for_each_option(opt, end, otype, olen, odata) {
if (otype == DHCPV6_OPT_RECONF_MESSAGE && olen == 1 && (