aboutsummaryrefslogtreecommitdiffstats
path: root/main/gdnsd/0001-Fix-ztree_txn_-API-to-work.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-10-27 06:12:15 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-10-27 06:12:15 +0000
commiteb26ddb58a52b62f0ca9024cf617cc21bbfc4961 (patch)
tree2bfe3978cf92826d966ba909b03df4f19aaa416e /main/gdnsd/0001-Fix-ztree_txn_-API-to-work.patch
parenta274400e95b3ef7c072496be2eb36c553af52b4c (diff)
downloadaports-eb26ddb58a52b62f0ca9024cf617cc21bbfc4961.tar.bz2
aports-eb26ddb58a52b62f0ca9024cf617cc21bbfc4961.tar.xz
main/gdnsd: remove unused patches
Diffstat (limited to 'main/gdnsd/0001-Fix-ztree_txn_-API-to-work.patch')
-rw-r--r--main/gdnsd/0001-Fix-ztree_txn_-API-to-work.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/main/gdnsd/0001-Fix-ztree_txn_-API-to-work.patch b/main/gdnsd/0001-Fix-ztree_txn_-API-to-work.patch
deleted file mode 100644
index f607d08c52..0000000000
--- a/main/gdnsd/0001-Fix-ztree_txn_-API-to-work.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From e4d663a531205cdb281318bc912d76f2be22b328 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
-Date: Thu, 11 Jul 2013 18:47:22 +0300
-Subject: [PATCH 1/2] Fix ztree_txn_* API to work
-
-ztree_clone() sets ztclone->zones to valid pointer even where
-it was NULL in the original ztree. This happens since malloc(0)
-returns always valid pointer. This confuses _ztree_update() and
-various other places as in several cases ->zones is tested
-instead of ->zones_len.
-
-Fix ztree_clone() to keep ->zones as NULL if the original had
-it as NULL.
----
- gdnsd/ztree.c | 11 ++++++++---
- 1 file changed, 8 insertions(+), 3 deletions(-)
-
-diff --git a/gdnsd/ztree.c b/gdnsd/ztree.c
-index 57ff6d6..3924504 100644
---- a/gdnsd/ztree.c
-+++ b/gdnsd/ztree.c
-@@ -526,9 +526,14 @@ static ztree_t* ztree_clone(const ztree_t* original) {
-
- ztree_t* ztclone = malloc(sizeof(ztree_t));
- ztclone->label = original->label;
-- ztclone->zones = malloc(original->zones_len * sizeof(zone_t*));
-- memcpy(ztclone->zones, original->zones, original->zones_len * sizeof(zone_t*));
-- ztclone->zones_len = original->zones_len;
-+ if (original->zones) {
-+ ztclone->zones = malloc(original->zones_len * sizeof(zone_t*));
-+ memcpy(ztclone->zones, original->zones, original->zones_len * sizeof(zone_t*));
-+ ztclone->zones_len = original->zones_len;
-+ } else {
-+ ztclone->zones = NULL;
-+ ztclone->zones_len = 0;
-+ }
- ztchildren_t* old_ztc = original->children;
- if(old_ztc) {
- ztchildren_t* new_ztc = ztclone->children = calloc(1, sizeof(ztchildren_t));
---
-1.8.3.2
-