req can't be NULL because the if condition surrounding this code checks
!(oplock_request & INTERNAL_OPEN_ONLY).
Bug: https://bugzilla.samba.org/show_bug.cgi?id=7537
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
8580adc1d968304b69237f289d13950972394b48)
state.async_open = false;
state.id = id;
- if ((req != NULL)
- && !request_timed_out(request_time,
- timeout)) {
+ if (!request_timed_out(request_time, timeout)) {
defer_open(lck, request_time, timeout,
req, &state);
}