The branch, v3-6-test has been updated
       via  fabfc89 s3:smbd: use anonymous_shared_free() for shared memory 
signing state
      from  fb6004d lib/util: add tests for anonymous_shared_allocate/free()

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


- Log -----------------------------------------------------------------
commit fabfc89df297113ea5df7689575d886935121e22
Author: Stefan Metzmacher <me...@samba.org>
Date:   Tue Oct 26 22:49:46 2010 +0200

    s3:smbd: use anonymous_shared_free() for shared memory signing state
    
    metze
    
    Autobuild-User: Stefan Metzmacher <me...@samba.org>
    Autobuild-Date: Thu Jan 20 07:48:29 CET 2011 on sn-devel-104
    (cherry picked from commit c3ad9bf1572abda699d88f48eabec680094b30de)
    
    Signed-off-by: Stefan Metzmacher <me...@samba.org>

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

Summary of changes:
 source3/smbd/signing.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/signing.c b/source3/smbd/signing.c
index 65fe457..8945cd3 100644
--- a/source3/smbd/signing.c
+++ b/source3/smbd/signing.c
@@ -98,6 +98,12 @@ struct smbd_shm_signing {
        size_t len2;
 };
 
+static int smbd_shm_signing_destructor(struct smbd_shm_signing *s)
+{
+       anonymous_shared_free(s->shm_pointer);
+       return 0;
+}
+
 static void *smbd_shm_signing_alloc(TALLOC_CTX *mem_ctx, size_t len)
 {
        struct smbd_shm_signing *s = talloc_get_type_abort(mem_ctx,
@@ -180,6 +186,7 @@ bool srv_init_signing(struct smbd_server_connection *conn)
                        talloc_free(s);
                        return false;
                }
+               talloc_set_destructor(s, smbd_shm_signing_destructor);
                conn->smb1.signing_state = smb_signing_init_ex(s,
                                                        allowed, mandatory,
                                                        smbd_shm_signing_alloc,


-- 
Samba Shared Repository

Reply via email to