summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-02-16 15:13:53 +1100
committerGünther Deschner <gd@samba.org>2011-02-17 16:02:19 +0100
commit09c4a5cd9bc3f46bbc90e86f0155ef4080d1a3ec (patch)
treeaa5c5a928f792c251eb72c81f5702f5807d8c5bd /source3/smbd
parent6840549123c9152a9fbe614a2f9d0de758318660 (diff)
downloadsamba-09c4a5cd9bc3f46bbc90e86f0155ef4080d1a3ec.tar.gz
samba-09c4a5cd9bc3f46bbc90e86f0155ef4080d1a3ec.tar.bz2
samba-09c4a5cd9bc3f46bbc90e86f0155ef4080d1a3ec.zip
s3-cluster Always fill in the clustering vnn element
This avoids this structure being partially uninitialised. Adnrew Bartlett
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/oplock.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index a2ba0109ae..4e5237e61f 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -887,9 +887,7 @@ void share_mode_entry_to_message(char *msg, const struct share_mode_entry *e)
SIVAL(msg,OP_BREAK_MSG_UID_OFFSET,e->uid);
SSVAL(msg,OP_BREAK_MSG_FLAGS_OFFSET,e->flags);
SIVAL(msg,OP_BREAK_MSG_NAME_HASH_OFFSET,e->name_hash);
-#ifdef CLUSTER_SUPPORT
SIVAL(msg,OP_BREAK_MSG_VNN_OFFSET,e->pid.vnn);
-#endif
}
/****************************************************************************
@@ -911,9 +909,7 @@ void message_to_share_mode_entry(struct share_mode_entry *e, char *msg)
e->uid = (uint32)IVAL(msg,OP_BREAK_MSG_UID_OFFSET);
e->flags = (uint16)SVAL(msg,OP_BREAK_MSG_FLAGS_OFFSET);
e->name_hash = IVAL(msg,OP_BREAK_MSG_NAME_HASH_OFFSET);
-#ifdef CLUSTER_SUPPORT
e->pid.vnn = IVAL(msg,OP_BREAK_MSG_VNN_OFFSET);
-#endif
}
/****************************************************************************