diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-01-09 14:14:22 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-01-09 16:07:38 +0100 |
commit | 27b101c07baf228a617b1d4d37b2507555de42b2 (patch) | |
tree | a30e0d80da09e3f6015b96059cc5c3b08242ff52 /src | |
parent | af1e251f8f1e0c6c50e25458793c8d2520e86f52 (diff) | |
download | connman-27b101c07baf228a617b1d4d37b2507555de42b2.tar.gz connman-27b101c07baf228a617b1d4d37b2507555de42b2.tar.bz2 connman-27b101c07baf228a617b1d4d37b2507555de42b2.zip |
dnsproxy: Check compress flag properly.
Diffstat (limited to 'src')
-rw-r--r-- | src/dnsproxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 35bcaee7..f3fc30f0 100644 --- 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) |