The branch, v3-2-test has been updated
       via  3677b2edd42765e50335cdba1651eebc3518e2ae (commit)
      from  3c92c4f3140d7817a66c6b8d601dd30e5d15c88d (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 3677b2edd42765e50335cdba1651eebc3518e2ae
Author: Michael Adam <[EMAIL PROTECTED]>
Date:   Thu Nov 20 16:31:44 2008 +0100

    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 <[EMAIL PROTECTED]>
    (cherry picked from commit 113c5d28edabdd17a2507e68aad612aa21c758f3)

-----------------------------------------------------------------------

Summary of changes:
 source/rpc_server/srv_eventlog_nt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/rpc_server/srv_eventlog_nt.c 
b/source/rpc_server/srv_eventlog_nt.c
index 792f212..419f406 100644
--- a/source/rpc_server/srv_eventlog_nt.c
+++ b/source/rpc_server/srv_eventlog_nt.c
@@ -427,7 +427,7 @@ static bool sync_eventlog_params( EVENTLOG_INFO *info )
        struct registry_value *value;
        WERROR wresult;
        char *elogname = info->logname;
-       TALLOC_CTX *ctx = talloc_tos();
+       TALLOC_CTX *ctx = talloc_stackframe();
        bool ret = false;
 
        DEBUG( 4, ( "sync_eventlog_params with %s\n", elogname ) );


-- 
Samba Shared Repository

Reply via email to