mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
do not purge interfaces on template load
This commit is contained in:
parent
15e247922d
commit
5ec7ff5675
@ -300,7 +300,6 @@ static bool load_template(private_guest_t *this, char *path)
|
|||||||
{
|
{
|
||||||
char dir[PATH_MAX];
|
char dir[PATH_MAX];
|
||||||
size_t len;
|
size_t len;
|
||||||
iface_t *iface;
|
|
||||||
|
|
||||||
if (path == NULL)
|
if (path == NULL)
|
||||||
{
|
{
|
||||||
@ -324,10 +323,6 @@ static bool load_template(private_guest_t *this, char *path)
|
|||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
while (this->ifaces->remove_last(this->ifaces, (void**)&iface) == SUCCESS)
|
|
||||||
{
|
|
||||||
iface->destroy(iface);
|
|
||||||
}
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user