[SCM] Samba Shared Repository - branch master updated

David Disseldorp ddiss at samba.org
Tue Jul 8 14:28:03 MDT 2014


The branch, master has been updated
       via  d3417b2 smbd: Avoid double-free in get_print_db_byname
      from  5f3a765 smbd: Factor out smbd_smb2_send_break

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit d3417b253e67aa476694d9c763fc3d8ee8f4fd90
Author: Volker Lendecke <vl at samba.org>
Date:   Tue Jul 8 14:30:54 2014 +0200

    smbd: Avoid double-free in get_print_db_byname
    
    Signed-off-by: Volker Lendecke <vl at samba.org>
    Reviewed-by: David Disseldorp <ddiss at samba.org>
    
    Autobuild-User(master): David Disseldorp <ddiss at samba.org>
    Autobuild-Date(master): Tue Jul  8 22:27:03 CEST 2014 on sn-devel-104

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

Summary of changes:
 source3/printing/printing_db.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/printing/printing_db.c b/source3/printing/printing_db.c
index ecb8ff6..b721317 100644
--- a/source3/printing/printing_db.c
+++ b/source3/printing/printing_db.c
@@ -65,9 +65,9 @@ struct tdb_print_db *get_print_db_byname(const char *printername)
 			if (p->ref_count)
 				continue;
 			if (p->tdb) {
-				if (tdb_close(print_db_head->tdb)) {
+				if (tdb_close(p->tdb)) {
 					DEBUG(0,("get_print_db: Failed to close tdb for printer %s\n",
-								print_db_head->printer_name ));
+								p->printer_name ));
 					return NULL;
 				}
 			}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list