[network-manager-fortisslvpn] service: fix routes handling
- From: Beniamino Galvani <bgalvani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-fortisslvpn] service: fix routes handling
- Date: Mon, 2 Nov 2015 10:33:19 +0000 (UTC)
commit 87fd3b11bd94aa6a5a42977787f21188dd7996a1
Author: Beniamino Galvani <bgalvani redhat com>
Date: Sat Oct 24 22:44:04 2015 +0200
service: fix routes handling
When only one route was received it was not added to IP configuration.
Fixes: b459c771f73187d4b14435e42191c2b5a1d58a75
src/nm-fortisslvpn-pppd-plugin.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nm-fortisslvpn-pppd-plugin.c b/src/nm-fortisslvpn-pppd-plugin.c
index 965d53d..204a9dc 100644
--- a/src/nm-fortisslvpn-pppd-plugin.c
+++ b/src/nm-fortisslvpn-pppd-plugin.c
@@ -179,7 +179,7 @@ get_ip4_routes (in_addr_t ouraddr)
}
value = g_variant_builder_end (&builder);
- if (i > 1)
+ if (i > 0)
return value;
g_variant_unref (value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]