diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-08 14:30:54 +0200 |
---|---|---|
committer | David Disseldorp <ddiss@samba.org> | 2014-07-08 22:27:03 +0200 |
commit | d3417b253e67aa476694d9c763fc3d8ee8f4fd90 (patch) | |
tree | 0e711ea47910c8c3aa88309e75e6d53f5893ad8f | |
parent | 5f3a7656726f808b649fb8dbdafff557867907d6 (diff) | |
download | samba-d3417b253e67aa476694d9c763fc3d8ee8f4fd90.tar.gz samba-d3417b253e67aa476694d9c763fc3d8ee8f4fd90.tar.xz samba-d3417b253e67aa476694d9c763fc3d8ee8f4fd90.zip |
smbd: Avoid double-free in get_print_db_byname
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Tue Jul 8 22:27:03 CEST 2014 on sn-devel-104
-rw-r--r-- | source3/printing/printing_db.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/printing_db.c b/source3/printing/printing_db.c index ecb8ff6463..b721317e5d 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; } } |