eventlog: don't crash in sync_eventlog_params().
commitf87d4c082b66acdd9a00f5644c428d0af17292b7
authorMichael Adam <obnox@samba.org>
Thu, 20 Nov 2008 15:31:44 +0000 (20 16:31 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 26 Nov 2008 09:13:31 +0000 (26 10:13 +0100)
treed89200d8e7945b8cd30f67acafaa642524371e46
parentac82b50dff4713cc4933600dea28de9ddcdaab76
eventlog: don't crash in sync_eventlog_params().

When freeing the talloc ctx at the end of the routine,
it must be a talloc ctx created inside. talloc_tos() needs
to be valid after the function finishes, since callers
(may) have data attached to it.

Michael

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 113c5d28edabdd17a2507e68aad612aa21c758f3)
source/rpc_server/srv_eventlog_nt.c