aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c')
-rw-r--r--src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c b/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c
index 520f52a6c..d6fd33a44 100644
--- a/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c
+++ b/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c
@@ -837,7 +837,7 @@ METHOD(kernel_net_t, add_ip, status_t,
{
prefix = vip->get_address(vip).len * 8;
}
- if (!tun->set_address(tun, vip, prefix) || !tun->up(tun))
+ if (!tun->up(tun) || !tun->set_address(tun, vip, prefix))
{
tun->destroy(tun);
return FAILED;