summaryrefslogtreecommitdiff
path: root/tables
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2014-06-26 12:37:59 +0000
committerEric Covener <covener@apache.org>2014-06-26 12:37:59 +0000
commit38d1adbce8c162756c5632ed25956fba915adfbc (patch)
treee26ee8afc35178bfd94f1224bd01d1115be5b145 /tables
parentd8f4244ed084cf9236d565e15d5c5485f4df03d6 (diff)
downloadapr-38d1adbce8c162756c5632ed25956fba915adfbc.tar.gz
backport r1604598 from trunk
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/branches/1.6.x@1605761 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 effcf603b..07e9ccc15 100644
--- a/tables/apr_skiplist.c
+++ b/tables/apr_skiplist.c
@@ -387,11 +387,9 @@ APR_DECLARE(apr_skiplistnode *) apr_skiplist_insert_compare(apr_skiplist *sl, vo
(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;