summaryrefslogtreecommitdiff
path: root/source3/lib/util_tdb.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-12 01:36:10 +0200
committerMichael Adam <obnox@samba.org>2008-04-12 01:36:10 +0200
commit8be49cdd3e84834bac7d9514c05b294e5403550a (patch)
tree1ffc2d54130f657a52effa576938b89de32dbb86 /source3/lib/util_tdb.c
parent9c02cb9ee83cae756ee60a5107d5e5631b85b6f6 (diff)
downloadsamba-8be49cdd3e84834bac7d9514c05b294e5403550a.tar.gz
samba-8be49cdd3e84834bac7d9514c05b294e5403550a.tar.bz2
samba-8be49cdd3e84834bac7d9514c05b294e5403550a.zip
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 (This used to be commit d9bd894c2ec4faf87e8ff96e27c7e2b8175f9387)
Diffstat (limited to 'source3/lib/util_tdb.c')
-rw-r--r--source3/lib/util_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c
index ce5e77f8f4..8257232667 100644
--- a/source3/lib/util_tdb.c
+++ b/source3/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;