mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +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 )
|
int regdb_close( void )
|
||||||
{
|
{
|
||||||
|
if (tdb_refcount == 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
tdb_refcount--;
|
tdb_refcount--;
|
||||||
|
|
||||||
DEBUG(10,("regdb_close: decrementing refcount (%d)\n", tdb_refcount));
|
DEBUG(10,("regdb_close: decrementing refcount (%d)\n", tdb_refcount));
|
||||||
|
Loading…
Reference in New Issue
Block a user