From: Hans Dedecker Date: Mon, 7 Dec 2020 20:26:47 +0000 (+0100) Subject: dhcpv6: fix regression X-Git-Url: http://git.openwrt.org/openwrt/static/gitweb.js?a=commitdiff_plain;h=e99e029626f2044e65870e74f22c96865297bfbf;p=project%2Fodhcp6c.git dhcpv6: fix regression Fixes regression introduced in commit faed29a. The DHCPv6 message type need to be returned by dhcpv6_handle_reconfigure via dhcpv6_request when different from -1 so the correct message type is passed to dhcpv6_request Signed-off-by: Hans Dedecker --- diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 5699296..e819189 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -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