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:12:47 +0000 (17:12 +0100)
commit113c5d28edabdd17a2507e68aad612aa21c758f3
tree2287f415216eb22b6a1d7c1b3afeb7490046a4c1
parente543bcc4e9da7c6e4cbfab7082a09eaefb48ed6b
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>
source/rpc_server/srv_eventlog_nt.c