]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[805] Release on broken rollback
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 22 Dec 2011 10:19:46 +0000 (11:19 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 22 Dec 2011 10:19:46 +0000 (11:19 +0100)
src/lib/server_common/portconfig.cc

index 8705f2aac89f91740394a136cf1e1c972e48a632..929ef7152340f34b575d06e8242d43570635e676 100644 (file)
@@ -151,6 +151,10 @@ installListenAddresses(const AddressList& newAddresses,
         }
         catch (const exception& e2) {
             LOG_FATAL(logger, SRVCOMM_ADDRESS_UNRECOVERABLE).arg(e2.what());
+            // Releasing them should really work
+            AddressList empty;
+            setAddresses(service, empty);
+            addressStore.clear();
         }
         //Anyway the new configure has problem, we need to notify configure
         //manager the new configure doesn't work