From d18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 15 Jun 2021 14:57:03 +0100 Subject: gentoo resync : 15.06.2021 --- .../ndu-0.4-fix-pointer-comparison-with-0.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 net-dns/ndu/files/ndu-0.4-fix-pointer-comparison-with-0.patch (limited to 'net-dns/ndu/files') diff --git a/net-dns/ndu/files/ndu-0.4-fix-pointer-comparison-with-0.patch b/net-dns/ndu/files/ndu-0.4-fix-pointer-comparison-with-0.patch new file mode 100644 index 000000000000..1d7a40d7aed4 --- /dev/null +++ b/net-dns/ndu/files/ndu-0.4-fix-pointer-comparison-with-0.patch @@ -0,0 +1,26 @@ +From 5df37d4e6a22a67671a4b74c68e725a9001fbac1 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Tue, 15 Jun 2021 02:38:33 +0000 +Subject: [PATCH] Fix pointer comparison with 0 + +Closes: https://bugs.gentoo.org/786276 +--- + src/ndu.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/ndu.cpp b/src/ndu.cpp +index 558ee45..8d3b353 100644 +--- a/src/ndu.cpp ++++ b/src/ndu.cpp +@@ -404,7 +404,7 @@ public: + { + // see if file is a reverse file + // if the zone ends in .in-addr.arpa +- if(strstr(name->pchar(), IN_ADDR_ARPA) > 0) ++ if(strstr(name->pchar(), IN_ADDR_ARPA) != 0) + { + zoneType = 1; + } +-- +2.32.0 + -- cgit v1.2.3