diff options
author | netblue30 <netblue30@protonmail.com> | 2022-10-11 11:28:46 -0400 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2022-10-11 11:28:46 -0400 |
commit | db1440266980213bd27482b73a10652c538b2ac7 (patch) | |
tree | b60efb3fefcacaba357e20858bd321c39aa5eb9a /src/fnettrace-dns/main.c | |
parent | nettrace-dns and nettrace-sni (diff) | |
download | firejail-db1440266980213bd27482b73a10652c538b2ac7.tar.gz firejail-db1440266980213bd27482b73a10652c538b2ac7.tar.zst firejail-db1440266980213bd27482b73a10652c538b2ac7.zip |
compile fix
Diffstat (limited to 'src/fnettrace-dns/main.c')
-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) |