diff --git a/source3/locking/posix.c b/source3/locking/posix.c index e7075c57a64..4a5f59b622d 100644 --- a/source3/locking/posix.c +++ b/source3/locking/posix.c @@ -454,9 +454,8 @@ static int delete_posix_lock_entry(files_struct *fsp, SMB_OFF_T start, SMB_OFF_T entry->start == start && entry->size == size) { - /* Make a copy if requested. */ - if (pl) - *pl = *entry; + /* Make a copy */ + *pl = *entry; /* Found it - delete it. */ if (count == 1) {