summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-03-30 15:15:29 +0200
committerVolker Lendecke <vl@samba.org>2012-03-30 16:52:16 +0200
commit1e24997e3e4bc04395d6ecf470faedb632b6ec68 (patch)
tree99528542cca3b0d6d47724b3c8c29a72a1a3f74f /source3/lib
parent40a4aea8918c2637703af03383f440d068820e48 (diff)
downloadsamba-1e24997e3e4bc04395d6ecf470faedb632b6ec68.tar.gz
samba-1e24997e3e4bc04395d6ecf470faedb632b6ec68.tar.bz2
samba-1e24997e3e4bc04395d6ecf470faedb632b6ec68.zip
s3: Avoid a crash with debug level 10
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 30 16:52:16 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index 41adfd8243..41d9f19a05 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1104,7 +1104,8 @@ again:
ctdb_data.dptr, ctdb_data.dptr ?
((struct ctdb_ltdb_header *)ctdb_data.dptr)->dmaster : -1,
get_my_vnn(),
- ((struct ctdb_ltdb_header *)ctdb_data.dptr)->flags));
+ ctdb_data.dptr ?
+ ((struct ctdb_ltdb_header *)ctdb_data.dptr)->flags : 0));
status = ctdbd_migrate(messaging_ctdbd_connection(), ctx->db_id,
key);