From: Michael Adam Date: Fri, 11 Apr 2008 23:36:10 +0000 (+0200) Subject: util_tdb: fix a segfault caused by a fatal typo. X-Git-Tag: samba-3.3.0pre1~2738^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9bd894c2ec4faf87e8ff96e27c7e2b8175f9387;p=thirdparty%2Fsamba.git util_tdb: fix a segfault caused by a fatal typo. 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 --- diff --git a/source/lib/util_tdb.c b/source/lib/util_tdb.c index ce5e77f8f4a..82572326679 100644 --- a/source/lib/util_tdb.c +++ b/source/lib/util_tdb.c @@ -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;