]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1442] Reset data dir in cfgmgr::clear
authorFrancis Dupont <fdupont@isc.org>
Tue, 3 Nov 2020 13:47:49 +0000 (14:47 +0100)
committerFrancis Dupont <fdupont@isc.org>
Mon, 16 Nov 2020 10:15:27 +0000 (11:15 +0100)
src/lib/dhcpsrv/cfgmgr.cc

index a9394efc3f2b8d0803213534a4e66fef3ec5f08f..acca9e45b174569e6d0463691068a92961a0ce6c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2012-2019 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2020 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -84,6 +84,7 @@ CfgMgr::clear() {
     external_configs_.clear();
     D2ClientConfigPtr d2_default_conf(new D2ClientConfig());
     setD2ClientConfig(d2_default_conf);
+    setDataDir(DHCP_DATA_DIR, true);
 }
 
 void
@@ -229,5 +230,5 @@ CfgMgr::CfgMgr()
 CfgMgr::~CfgMgr() {
 }
 
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace