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 | |
parent | nettrace-dns and nettrace-sni (diff) | |
download | firejail-db1440266980213bd27482b73a10652c538b2ac7.tar.gz firejail-db1440266980213bd27482b73a10652c538b2ac7.tar.zst firejail-db1440266980213bd27482b73a10652c538b2ac7.zip |
compile fix
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | src/fnettrace-dns/main.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -968,6 +968,7 @@ slowpeek (https://github.com/slowpeek) | |||
968 | - refine appimage example in docs | 968 | - refine appimage example in docs |
969 | - allow resolution of .local names with avahi-daemon in the apparmor profile | 969 | - allow resolution of .local names with avahi-daemon in the apparmor profile |
970 | - allow access to avahi-daemon in apparmor/firejail-default | 970 | - allow access to avahi-daemon in apparmor/firejail-default |
971 | - make appimage examples consistent with --appimage option short description | ||
971 | smitsohu (https://github.com/smitsohu) | 972 | smitsohu (https://github.com/smitsohu) |
972 | - read-only kde4 services directory | 973 | - read-only kde4 services directory |
973 | - enhanced mediathekview profile | 974 | - 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) { | |||
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) |