diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-26 21:23:28 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-26 21:23:28 +0100 |
commit | 88d5dce8899a334c8861957ab3b0b59bc99d9709 (patch) | |
tree | e732d0bf7bec60b850f4497d1243a62c1269cf1c /src/provider.c | |
parent | 91b1c84ffa2c1053737402e8ea94ca5bcc2db2f9 (diff) | |
download | connman-88d5dce8899a334c8861957ab3b0b59bc99d9709.tar.gz connman-88d5dce8899a334c8861957ab3b0b59bc99d9709.tar.bz2 connman-88d5dce8899a334c8861957ab3b0b59bc99d9709.zip |
provider: Set service pointer for provider_set_nameservers
Diffstat (limited to 'src/provider.c')
-rw-r--r-- | src/provider.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/provider.c b/src/provider.c index f7a512c7..b7cba237 100644 --- a/src/provider.c +++ b/src/provider.c @@ -258,10 +258,15 @@ int __connman_provider_remove(const char *path) static void provider_set_nameservers(struct connman_provider *provider) { + struct connman_service *service = provider->vpn_service; + char *nameservers = NULL, *name = NULL; const char *value; char *second_ns; + if (service == NULL) + return; + if (provider->dns == NULL) return; |