mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Fix crash bug in regdb_close() when called with no ref count.
Michael, please check. Guenther
This commit is contained in:
parent
aaea8f1ed7
commit
d6575ff5d2
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user