Files
passivedns/0001-Fix-compiler-warning-about-excessive-parenthesis.patch
Martin Hauke 21d3f9806d - Add patches:
* https://patch-diff.githubusercontent.com/raw/gamelinux/passivedns/pull/128.patch
  * 0001-Fix-compiler-warning-about-excessive-parenthesis.patch
  * 0002-Add-support-for-loopback-devices.patch
  * 0003-Declare-signal_reopen_log_files-as-a-sig_atomic_t.patch
  * 0001-Added-patch-for-GCC-10-by-acoul.patch

OBS-URL: https://build.opensuse.org/package/show/home:mnhauke:security/passivedns?expand=0&rev=5
2022-10-05 19:03:10 +00:00

35 lines
1.0 KiB
Diff

From 4f09955f543a142165d45382a17d299857047d4b Mon Sep 17 00:00:00 2001
From: Shawn Michael <blkmajik@monkeyspunk.net>
Date: Wed, 8 Dec 2021 16:27:19 -0700
Subject: [PATCH 1/3] Fix compiler warning about excessive parenthesis
---
src/dns.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/dns.c b/src/dns.c
index e1dbf81..e3901c0 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -121,7 +121,7 @@ void dns_parser(packetinfo *pi)
}
dlog("[D] DNS Answer\n");
/* Check the DNS TID */
- if ((pi->cxt->plid == ldns_pkt_id(dns_pkt))) {
+ if (pi->cxt->plid == ldns_pkt_id(dns_pkt)) {
dlog("[D] DNS Query TID match Answer TID: %d\n", pi->cxt->plid);
}
else {
@@ -372,7 +372,7 @@ int cache_dns_objects(packetinfo *pi, ldns_rdf *rdf_data,
to_offset = 5;
}
break;
-
+
case LDNS_RR_TYPE_NSEC:
if (config.dnsf & DNS_CHK_DNSSEC) {
offset = 0;
--
2.37.3