From db1440266980213bd27482b73a10652c538b2ac7 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 11 Oct 2022 11:28:46 -0400 Subject: compile fix --- README | 1 + src/fnettrace-dns/main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README b/README index 79573ce6c..03a68e95c 100644 --- a/README +++ b/README @@ -968,6 +968,7 @@ slowpeek (https://github.com/slowpeek) - refine appimage example in docs - allow resolution of .local names with avahi-daemon in the apparmor profile - allow access to avahi-daemon in apparmor/firejail-default + - make appimage examples consistent with --appimage option short description smitsohu (https://github.com/smitsohu) - read-only kde4 services directory - enhanced mediathekview profile 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) { time_t seconds = time(NULL); struct tm *t = localtime(&seconds); - int nxdomain = (*(pkt + 3) & 0x03 == 0x03)? 1: 0; + int nxdomain = ((*(pkt + 3) & 0x03) == 0x03)? 1: 0; // expecting a single question count if (pkt[4] != 0 || pkt[5] != 1) -- cgit v1.2.3-70-g09d2