summaryrefslogtreecommitdiff
path: root/tables
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2014-06-22 15:10:20 +0000
committerEric Covener <covener@apache.org>2014-06-22 15:10:20 +0000
commit1926ad0d6072658f4d22c39c88e8adad2926b456 (patch)
treed622581f0cbdb3353e9568795ed0bec23b22f6f6 /tables
parent701c91c02e6a594c2beadb20a06c3d9479ecf499 (diff)
downloadapr-1926ad0d6072658f4d22c39c88e8adad2926b456.tar.gz
apr_skiplist becomes corrupt when nodes are reused.
Submitted By: Takashi Sato <takashi tks st>, covener committed By: covener git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1604598 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tables')
-rw-r--r--tables/apr_skiplist.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tables/apr_skiplist.c b/tables/apr_skiplist.c
index a638a698a..12205440f 100644
--- a/tables/apr_skiplist.c
+++ b/tables/apr_skiplist.c
@@ -379,11 +379,9 @@ static apr_skiplistnode *insert_compare(apr_skiplist *sl, void *data,
(apr_skiplistnode *)apr_skiplist_alloc(sl, sizeof(apr_skiplistnode));
sl->top->up->down = sl->top;
sl->top = sl->topend = sl->top->up;
-#if 0
sl->top->prev = sl->top->next = sl->top->nextindex =
sl->top->previndex = sl->top->up = NULL;
sl->top->data = NULL;
-#endif
sl->top->sl = sl;
}
ch = sl->height;