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:08:37 +0000 (17:08 +0100)
commit172628dca2b8553b8b7273a645393d5c96daa67e
treea42c31a3e09c384f29b2bb34ea24e956a0b6d1d9
parentda683d6a73a37d18aa8fca52ef2b4837c7ff1345
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>
source3/rpc_server/srv_eventlog_nt.c