diff options
Diffstat (limited to 'src/fnettrace-dns')
-rw-r--r-- | src/fnettrace-dns/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fnettrace-dns/main.c b/src/fnettrace-dns/main.c index 28c76a901..eb2eb7238 100644 --- a/src/fnettrace-dns/main.c +++ b/src/fnettrace-dns/main.c | |||
@@ -35,7 +35,7 @@ void print_dns(uint32_t ip_src, unsigned char *pkt) { | |||
35 | time_t seconds = time(NULL); | 35 | time_t seconds = time(NULL); |
36 | struct tm *t = localtime(&seconds); | 36 | struct tm *t = localtime(&seconds); |
37 | 37 | ||
38 | int nxdomain = (*(pkt + 3) & 0x03 == 0x03)? 1: 0; | 38 | int nxdomain = ((*(pkt + 3) & 0x03) == 0x03)? 1: 0; |
39 | 39 | ||
40 | // expecting a single question count | 40 | // expecting a single question count |
41 | if (pkt[4] != 0 || pkt[5] != 1) | 41 | if (pkt[4] != 0 || pkt[5] != 1) |