From 42c1eca26593246769739da58df7e9a76536f401 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 7 Aug 2007 11:50:03 +0000 Subject: r24267: Fix the build farm I had only tested with "net getlocalsid". posix_locking_init() calls this with a NULL name... (This used to be commit 3eee1fe28057e2e3da2e9d1506f57f3e35fd37b7) --- source3/lib/util_tdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/util_tdb.c') diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c index 28a31995c1..5aee74cbab 100644 --- a/source3/lib/util_tdb.c +++ b/source3/lib/util_tdb.c @@ -696,7 +696,7 @@ TDB_CONTEXT *tdb_open_log(const char *name, int hash_size, int tdb_flags, log_ctx.log_fn = tdb_log; log_ctx.log_private = NULL; - if (hash_size == 0) { + if ((hash_size == 0) && (name != NULL)) { const char *base = strrchr_m(name, '/'); if (base != NULL) { base += 1; @@ -940,7 +940,7 @@ struct tdb_wrap *tdb_wrap_open(TALLOC_CTX *mem_ctx, return NULL; } - if (hash_size == 0) { + if ((hash_size == 0) && (name != NULL)) { const char *base = strrchr_m(name, '/'); if (base != NULL) { base += 1; -- cgit