[SCM] Samba Shared Repository - branch v3-2-test updated -
initial-v3-2-unstable-1054-gd6575ff
Günther Deschner
gd at samba.org
Fri Jan 4 12:00:29 GMT 2008
The branch, v3-2-test has been updated
via d6575ff5d240ec431b6e837494913dbd06e5a299 (commit)
from aaea8f1ed744e9662f92a3840d86ad1aff943d18 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit d6575ff5d240ec431b6e837494913dbd06e5a299
Author: Günther Deschner <gd at samba.org>
Date: Fri Jan 4 12:57:49 2008 +0100
Fix crash bug in regdb_close() when called with no ref count.
Michael, please check.
Guenther
-----------------------------------------------------------------------
Summary of changes:
source/registry/reg_db.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/registry/reg_db.c b/source/registry/reg_db.c
index 25c6557..1979929 100644
--- a/source/registry/reg_db.c
+++ b/source/registry/reg_db.c
@@ -329,6 +329,10 @@ WERROR regdb_open( void )
int regdb_close( void )
{
+ if (tdb_refcount == 0) {
+ return 0;
+ }
+
tdb_refcount--;
DEBUG(10,("regdb_close: decrementing refcount (%d)\n", tdb_refcount));
--
Samba Shared Repository
More information about the samba-cvs
mailing list