1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

Fix crash bug in regdb_close() when called with no ref count.

Michael, please check.

Guenther
This commit is contained in:
Günther Deschner 2008-01-04 12:57:49 +01:00
parent aaea8f1ed7
commit d6575ff5d2

View File

@ -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));