s4:dsdb Fix use of memory after free in repl_meta_data
authorAndrew Bartlett <abartlet@samba.org>
Sat, 1 May 2010 08:22:20 +0000 (18:22 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 1 May 2010 12:20:25 +0000 (22:20 +1000)
commitdfd7ad20832d848349ba2974e43a1d545df2aded
tree826bc70d9aeab4960d45711329d13beb5611668e
parentf4092ecec722d7e2c04f3049630975af9e96bc07
s4:dsdb Fix use of memory after free in repl_meta_data

The upgraded link values are were allocated on tmp_ctx, and need to be
kept until they are written to the DB.  If we don't give the correct
context, they will be gone after the talloc_free(tmp_ctx).

Found by Matthieu Patou <mat+Informatique.Samba@matws.net>

Andrew Bartlett
source4/dsdb/samdb/ldb_modules/repl_meta_data.c