summaryrefslogtreecommitdiff
path: root/net-dns/ndu/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-06-15 14:57:03 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-06-15 14:57:03 +0100
commitd18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c (patch)
tree4a95cbc6ffdf13bad6ecbc7f8d5af99631984123 /net-dns/ndu/files
parente748ba9741f6540f4675c23e3e37b73e822c13a4 (diff)
gentoo resync : 15.06.2021
Diffstat (limited to 'net-dns/ndu/files')
-rw-r--r--net-dns/ndu/files/ndu-0.4-fix-pointer-comparison-with-0.patch26
1 files changed, 26 insertions, 0 deletions
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 <sam@gentoo.org>
+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
+