summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/host.cc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2017-12-31 10:28:48 +0100
committerFrancis Dupont <fdupont@isc.org>2017-12-31 10:28:48 +0100
commitc24d057bed2692eaf3cdb6af889122eb582ffede (patch)
tree626bb68252b55bb7f2c330c79c87c3a3c7e64fc5 /src/lib/dhcpsrv/host.cc
parent[5351] Missing commit (diff)
parent[5452] Added a new unit test against regression (diff)
downloadkea-c24d057bed2692eaf3cdb6af889122eb582ffede.tar.xz
kea-c24d057bed2692eaf3cdb6af889122eb582ffede.zip
[5351] Finished merge of trac5452 (unparse subnets)
Diffstat (limited to 'src/lib/dhcpsrv/host.cc')
-rw-r--r--src/lib/dhcpsrv/host.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/host.cc b/src/lib/dhcpsrv/host.cc
index 2f37017064..562bfb4702 100644
--- a/src/lib/dhcpsrv/host.cc
+++ b/src/lib/dhcpsrv/host.cc
@@ -434,7 +434,7 @@ Host::toElement4() const {
} else {
isc_throw(ToElementError, "invalid identifier type: " << id_type);
}
- // Set the reservation
+ // Set the reservation (if not 0.0.0.0 which may not be re-read)
const IOAddress& address = getIPv4Reservation();
if (!address.isV4Zero()) {
map->set("ip-address", Element::create(address.toText()));