From: Jukka Rissanen Date: Mon, 9 Jan 2012 12:14:22 +0000 (+0200) Subject: dnsproxy: Check compress flag properly. X-Git-Tag: 0.79~216 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27b101c07baf228a617b1d4d37b2507555de42b2;p=platform%2Fupstream%2Fconnman.git dnsproxy: Check compress flag properly. --- diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 35bcaee..f3fc30f 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)