eventlog: don't crash in sync_eventlog_params().
authorMichael Adam <obnox@samba.org>
Thu, 20 Nov 2008 15:31:44 +0000 (16:31 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 20 Nov 2008 16:13:31 +0000 (17:13 +0100)
commit3677b2edd42765e50335cdba1651eebc3518e2ae
tree8e7c5570897b909d32b91e051bdcdf08e10c6815
parent3c92c4f3140d7817a66c6b8d601dd30e5d15c88d
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