dhcpv6: fix regression
[project/odhcp6c.git] / src / dhcpv6.c
index 56992968055bfed12d6625c388a5a93e6132619b..e81918935756b08fd0801f3f2778008cb57710a6 100644 (file)
@@ -869,7 +869,7 @@ static int dhcpv6_handle_reconfigure(enum dhcpv6_msg orig, const int rc,
        if (msg != DHCPV6_MSG_UNKNOWN)
                dhcpv6_handle_reply(orig, rc, NULL, NULL, NULL);
 
-       return (msg == DHCPV6_MSG_UNKNOWN? -1: 1);
+       return (msg == DHCPV6_MSG_UNKNOWN? -1: (int)msg);
 }
 
 // Collect all advertised servers