diff options
| author | Hans Dedecker | 2020-12-07 20:26:47 +0000 |
|---|---|---|
| committer | Hans Dedecker | 2020-12-07 20:42:55 +0000 |
| commit | e99e029626f2044e65870e74f22c96865297bfbf (patch) | |
| tree | eba5b263b44968a90a40c35a20ca673f8b242196 | |
| parent | 48071182e63e4f3b73885daaecee148c9fc1c886 (diff) | |
| download | odhcp6c-e99e029626f2044e65870e74f22c96865297bfbf.tar.gz | |
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 <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 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 |