projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dde2af
)
Fix WPAD issue with empty result list
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 30 Jul 2010 21:27:46 +0000
(14:27 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 30 Jul 2010 21:27:46 +0000
(14:27 -0700)
src/wpad.c
patch
|
blob
|
history
diff --git
a/src/wpad.c
b/src/wpad.c
index
c76c63b
..
5f1f1f5
100644
(file)
--- a/
src/wpad.c
+++ b/
src/wpad.c
@@
-65,6
+65,9
@@
static void wpad_result(GResolvResultStatus status,
if (status == G_RESOLV_RESULT_STATUS_SUCCESS) {
char *url;
+ if (results == NULL || g_strv_length(results) == 0)
+ return;
+
url = g_strdup_printf("http://%s/wpad.dat", wpad->hostname);
__connman_service_set_proxy_autoconfig(wpad->service, url);
g_free(url);