]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
util_tdb: fix a segfault caused by a fatal typo.
authorMichael Adam <obnox@samba.org>
Fri, 11 Apr 2008 23:36:10 +0000 (01:36 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 11 Apr 2008 23:36:10 +0000 (01:36 +0200)
In tdb_wrap_log(), in on occurrence of "debug_level = 0"
instead of "debuglevel = 0" caused me segfaults when
accessing DEBUGLEVEL (which is defined as "*debug_level"...)

Michael

source/lib/util_tdb.c

index ce5e77f8f4a89769445867935fbeef7a539396a5..825723266790e731ab40ed7191cde788d0360cf8 100644 (file)
@@ -862,7 +862,7 @@ static void tdb_wrap_log(TDB_CONTEXT *tdb, enum tdb_debug_level level,
 
        switch (level) {
        case TDB_DEBUG_FATAL:
-               debug_level = 0;
+               debuglevel = 0;
                break;
        case TDB_DEBUG_ERROR:
                debuglevel = 1;