[network-manager-openvpn] helper: don't try to send the configuration if there's no IP settings
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn] helper: don't try to send the configuration if there's no IP settings
- Date: Fri, 13 Nov 2015 15:15:52 +0000 (UTC)
commit 64359a487a751ba9b38667d2940b36ed03ab7234
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Fri Nov 13 14:41:53 2015 +0100
helper: don't try to send the configuration if there's no IP settings
The libnm would complain.
src/nm-openvpn-service-openvpn-helper.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nm-openvpn-service-openvpn-helper.c b/src/nm-openvpn-service-openvpn-helper.c
index 1a162cd..50027f9 100644
--- a/src/nm-openvpn-service-openvpn-helper.c
+++ b/src/nm-openvpn-service-openvpn-helper.c
@@ -729,6 +729,9 @@ main (int argc, char *argv[])
ip6config = NULL;
}
+ if (!ip4config && !ip6config)
+ helper_failed (proxy, "IPv4 or IPv6 configuration");
+
/* Send the config info to nm-openvpn-service */
send_config (proxy, g_variant_builder_end (&builder), ip4config, ip6config);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]