summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/bin/dhcp6/dhcp6_srv.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e869058add..ca897f49c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
Kea 2.1.5 (development) released on Apr 27, 2022
+2015. [bug] tmark
+ Fixed an issue in kea-dhcp6 that was causing the server
+ not to update the FQDN option in outbound responses when
+ the ddsn-tuning hook lib calculates a new host name.
+ (Gitlba #2392)
+
2014. [bug] tmark
Correct an issue that was causing reconfigure to fail
in kea-dhcp4 and kea-dhcp6 when using ddns-tuning hook
diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc
index 86e6b0765a..11fc182cd1 100644
--- a/src/bin/dhcp6/dhcp6_srv.cc
+++ b/src/bin/dhcp6/dhcp6_srv.cc
@@ -1981,7 +1981,7 @@ Dhcpv6Srv::processClientFqdn(const Pkt6Ptr& question, const Pkt6Ptr& answer,
.arg(ctx.rev_dns_update_).arg(hook_rev_dns_update);
// Update the FQDN option in the response.
- fqdn_resp = boost::dynamic_pointer_cast<Option6ClientFqdn>(question->getOption(D6O_CLIENT_FQDN));
+ fqdn_resp = boost::dynamic_pointer_cast<Option6ClientFqdn>(answer->getOption(D6O_CLIENT_FQDN));
if (fqdn) {
fqdn_resp->setDomainName(hook_hostname, Option6ClientFqdn::FULL);
}