summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-08-07 11:50:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:22 -0500
commit42c1eca26593246769739da58df7e9a76536f401 (patch)
tree7d35906123c260e4d850de0d7ed6c031dad6c95e /source3
parent28210588edc39eb2b6cd237f11b488fa4d6b6985 (diff)
downloadsamba-42c1eca26593246769739da58df7e9a76536f401.tar.gz
samba-42c1eca26593246769739da58df7e9a76536f401.tar.bz2
samba-42c1eca26593246769739da58df7e9a76536f401.zip
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)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_tdb.c4
1 files changed, 2 insertions, 2 deletions
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;