aboutsummaryrefslogtreecommitdiffstats
path: root/src/dumm/iface.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-07-04 06:58:04 +0000
committerMartin Willi <martin@strongswan.org>2008-07-04 06:58:04 +0000
commit4302d4f0120cebe54c90ae7ecf55a90f641eb105 (patch)
tree5caea5a8a49351118c99700c9b7bfe000a9592e4 /src/dumm/iface.c
parent60721cee7354bfac985fe9403da25af6a5a3a924 (diff)
downloadstrongswan-4302d4f0120cebe54c90ae7ecf55a90f641eb105.tar.bz2
strongswan-4302d4f0120cebe54c90ae7ecf55a90f641eb105.tar.xz
some stability improvements
Diffstat (limited to 'src/dumm/iface.c')
-rw-r--r--src/dumm/iface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dumm/iface.c b/src/dumm/iface.c
index b78c10bec..b1fc641d0 100644
--- a/src/dumm/iface.c
+++ b/src/dumm/iface.c
@@ -205,10 +205,6 @@ iface_t *iface_create(char *guest, char *guestif, mconsole_t *mconsole)
free(this);
return NULL;
}
- if (!iface_control(this->hostif, TRUE))
- {
- DBG1("bringing iface '%s' up failed: %m", this->hostif);
- }
if (!this->mconsole->add_iface(this->mconsole, this->guestif, this->hostif))
{
DBG1("creating interface '%s' in guest failed", this->guestif);
@@ -218,6 +214,10 @@ iface_t *iface_create(char *guest, char *guestif, mconsole_t *mconsole)
free(this);
return NULL;
}
+ if (!iface_control(this->hostif, TRUE))
+ {
+ DBG1("bringing iface '%s' up failed: %m", this->hostif);
+ }
return &this->public;
}