summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-03 13:27:49 +0000
committerDavid Disseldorp <ddiss@samba.org>2013-10-24 14:21:59 +0200
commitbd542281bc424e4feae255df16b04f598d692304 (patch)
tree1e3977c6845c8380fddd3ef9be58aba463103544 /source3/smbd
parent670da42bfb2de69031f98d02ed09ca7b6680c927 (diff)
downloadsamba-bd542281bc424e4feae255df16b04f598d692304.tar.gz
samba-bd542281bc424e4feae255df16b04f598d692304.tar.bz2
samba-bd542281bc424e4feae255df16b04f598d692304.zip
smbd: Unify parameters to set_oplock_type
Some lines above we set fsp->oplock_type = e->op_type. I don't see how this might have changed. This change will unify both callers of set_file_oplock. In the next step the second parameter to set_file_oplock will be removed. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/durable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/durable.c b/source3/smbd/durable.c
index 9b05d48680..15d70058c6 100644
--- a/source3/smbd/durable.c
+++ b/source3/smbd/durable.c
@@ -864,7 +864,7 @@ NTSTATUS vfs_default_durable_reconnect(struct connection_struct *conn,
return NT_STATUS_OBJECT_NAME_NOT_FOUND;
}
- status = set_file_oplock(fsp, e->op_type);
+ status = set_file_oplock(fsp, fsp->oplock_type);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1, ("vfs_default_durable_reconnect failed to set oplock "
"after opening file: %s\n", nt_errstr(status)));