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:
829666a
)
Fix DNS TCP buffer parsing copy paste error
author
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 24 Sep 2010 15:33:01 +0000
(17:33 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 24 Sep 2010 15:33:01 +0000
(17:33 +0200)
plugins/dnsproxy.c
patch
|
blob
|
history
diff --git
a/plugins/dnsproxy.c
b/plugins/dnsproxy.c
index 1b7cd321c28ec61ab6bb118f4bcbba32aa80bdb0..135f7f5f90741ec067d7877071ce3c3c9e186ba5 100644
(file)
--- a/
plugins/dnsproxy.c
+++ b/
plugins/dnsproxy.c
@@
-885,7
+885,7
@@
static gboolean tcp_listener_event(GIOChannel *channel, GIOCondition condition,
if (len < 2)
return TRUE;
- DBG("Received %d bytes (id 0x%04x)", len, buf[
0] | buf[1
] << 8);
+ DBG("Received %d bytes (id 0x%04x)", len, buf[
2] | buf[3
] << 8);
err = parse_request(buf + 2, len - 2, query, sizeof(query));
if (err < 0 || (g_slist_length(server_list) == 0 &&