From e99e029626f2044e65870e74f22c96865297bfbf Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Mon, 7 Dec 2020 21:26:47 +0100 Subject: [PATCH] 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 --- src/dhcpv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2