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:
af1e251
)
dnsproxy: Check compress flag properly.
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Mon, 9 Jan 2012 12:14:22 +0000
(14:14 +0200)
committer
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Mon, 9 Jan 2012 15:07:38 +0000
(16:07 +0100)
src/dnsproxy.c
patch
|
blob
|
history
diff --git
a/src/dnsproxy.c
b/src/dnsproxy.c
index
35bcaee
..
f3fc30f
100644
(file)
--- a/
src/dnsproxy.c
+++ b/
src/dnsproxy.c
@@
-509,7
+509,7
@@
static int get_name(int counter,
p = start;
while (*p) {
- if (
*p &
NS_CMPRSFLGS) {
+ if (
(*p & NS_CMPRSFLGS) ==
NS_CMPRSFLGS) {
uint16_t offset = (*p & 0x3F) * 256 + *(p + 1);
if (offset >= max - pkt)