summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-18 23:55:50 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-18 23:55:50 +0200
commit6f6e42ce60e3f9adfebffa7db04eafe717942c1b (patch)
treedb4e44ad08d46743eea39275bfe20a57f6bc8cb0 /source4/lib/ldb/ldb_tdb
parentec80fe4b214e311952ab67b3fd8b1cb1551c3b5c (diff)
downloadsamba-6f6e42ce60e3f9adfebffa7db04eafe717942c1b.tar.gz
samba-6f6e42ce60e3f9adfebffa7db04eafe717942c1b.tar.bz2
samba-6f6e42ce60e3f9adfebffa7db04eafe717942c1b.zip
Generate with 1.3.36.
Diffstat (limited to 'source4/lib/ldb/ldb_tdb')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c b/source4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c
index 654574cd2f..4fea43c8c8 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c
@@ -64,6 +64,10 @@ static void ltdb_log_fn(struct tdb_context *tdb, enum tdb_debug_level level, con
struct ldb_context *ldb = talloc_get_type(tdb_get_logging_private(tdb), struct ldb_context);
enum ldb_debug_level ldb_level;
char *message;
+
+ if (ldb == NULL)
+ return;
+
va_start(ap, fmt);
message = talloc_vasprintf(ldb, fmt, ap);
va_end(ap);