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:
72397eb
)
provider: Do not deference NULL pointer
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Mon, 28 Mar 2011 10:04:36 +0000
(12:04 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 28 Mar 2011 10:07:35 +0000
(12:07 +0200)
Fixes BMC#14940
src/provider.c
patch
|
blob
|
history
diff --git
a/src/provider.c
b/src/provider.c
index
188697b
..
e123fe7
100644
(file)
--- a/
src/provider.c
+++ b/
src/provider.c
@@
-736,8
+736,10
@@
int connman_provider_set_nameservers(struct connman_provider *provider,
__connman_service_nameserver_clear(provider->vpn_service);
- if (nameservers != NULL)
- nameservers_array = g_strsplit(nameservers, " ", 0);
+ if (nameservers == NULL)
+ return 0;
+
+ nameservers_array = g_strsplit(nameservers, " ", 0);
for (i = 0; nameservers_array[i] != NULL; i++) {
__connman_service_nameserver_append(provider->vpn_service,