diff options
author | Eric Covener <covener@apache.org> | 2014-06-22 15:10:20 +0000 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2014-06-22 15:10:20 +0000 |
commit | 1926ad0d6072658f4d22c39c88e8adad2926b456 (patch) | |
tree | d622581f0cbdb3353e9568795ed0bec23b22f6f6 /tables | |
parent | 701c91c02e6a594c2beadb20a06c3d9479ecf499 (diff) | |
download | apr-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.c | 2 |
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; |