nic_router: fix uncaught exception on re-configure

This commit is contained in:
Martin Stein 2018-05-24 19:42:36 +02:00 committed by Christian Helmuth
parent 4802d22527
commit c32c584f65
1 changed files with 2 additions and 1 deletions

View File

@ -1198,7 +1198,8 @@ void Interface::_ready_to_ack()
void Interface::_destroy_dhcp_allocation(Dhcp_allocation &allocation,
Domain &local_domain)
{
local_domain.dhcp_server().free_ip(allocation.ip());
try { local_domain.dhcp_server().free_ip(allocation.ip()); }
catch (Pointer<Dhcp_server>::Invalid) { }
destroy(_alloc, &allocation);
}