diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-05-09 17:43:45 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2011-11-19 20:06:45 +0100 |
commit | 3651471288ebd05108c9cd7f1bdbb844829244fb (patch) | |
tree | e1b8ad58bdf9f702bc1c08532b7a5315c1db491a | |
parent | d8091581f7e55a8147c9ec5e8a30481596093d27 (diff) | |
download | samba-3651471288ebd05108c9cd7f1bdbb844829244fb.tar.gz samba-3651471288ebd05108c9cd7f1bdbb844829244fb.tar.xz samba-3651471288ebd05108c9cd7f1bdbb844829244fb.zip |
lib/util/ Fix crash bug caused by gfree_debug()
The issue is that we should reset the debug_num_classes to 0 when we
un-initialise the debug system.
Andrew Bartlett
(cherry picked from commit 5db0cd55d4db9cc71f32dc0097e2f014c22967bc)
Fix bug #8623 (Crash when trying to browse samba printers).
-rw-r--r-- | lib/util/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c index 2ff7cb2c588..108161edf55 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -202,7 +202,7 @@ void gfree_debugsyms(void) TALLOC_FREE(format_bufr); - debug_num_classes = DBGC_MAX_FIXED; + debug_num_classes = 0; state.initialized = false; } |