projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75cae63
)
pptp: Get VPN gateway resolved IP address
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Thu, 23 Aug 2012 11:19:37 +0000
(14:19 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Thu, 23 Aug 2012 12:12:14 +0000
(15:12 +0300)
We should not use the Host variable from provider as it can
contain a non-resolved address.
Fixes BMC#25658
plugins/pptp.c
patch
|
blob
|
history
diff --git
a/plugins/pptp.c
b/plugins/pptp.c
index
365bde7
..
c08635c
100644
(file)
--- a/
plugins/pptp.c
+++ b/
plugins/pptp.c
@@
-179,7
+179,7
@@
static int pptp_notify(DBusMessage *msg, struct connman_provider *provider)
return VPN_STATE_FAILURE;
}
- value = connman_provider_get_string(provider, "Host");
+ value = connman_provider_get_string(provider, "Host
IP
");
if (value != NULL) {
connman_provider_set_string(provider, "Gateway", value);
gateway = g_strdup(value);