s4-ldb: fixed show_deleted module not to corrupt parse trees
authorAndrew Tridgell <tridge@samba.org>
Fri, 4 Dec 2009 06:46:14 +0000 (17:46 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 4 Dec 2009 06:49:19 +0000 (17:49 +1100)
commitbe78d4a70de2aede3b9c4a644ce64c85141790cb
treef83810d8b5e495b8ad88fe22e0bd5988487a468d
parentced3eef776dd44d0f3e9219f77e2660f9e49fa92
s4-ldb: fixed show_deleted module not to corrupt parse trees

The show_deleted module was using a static private ptr in the module
to hold a parse tree to save on parsing. The code caused this
static ptr to change with each search, which caused incorrect
searches and numerous valgrind errors.

This patch replaces it with a hand-built parse tree.
source4/dsdb/samdb/ldb_modules/show_deleted.c