s4-kcc: Avoid use-after-free of dn and add tmp_ctx
commit26bfe70def9905674c74bfe6f9d687b243af4891
authorAndrew Bartlett <abartlet@samba.org>
Fri, 17 Aug 2012 12:47:44 +0000 (17 22:47 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Aug 2012 14:41:26 +0000 (17 16:41 +0200)
tree10ca84ae33e56851a8d4d2f2fc90812445c6ca49
parent1b487ad3d7f709b0a100ccdc6fc30dcf7d0b778c
s4-kcc: Avoid use-after-free of dn and add tmp_ctx

By using a tmp_ctx we are clearer about allocating temporary memory.

Andrew Bartlett
source4/dsdb/kcc/kcc_periodic.c