summaryrefslogtreecommitdiff
path: root/source3/smbd/scavenger.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/scavenger.c')
-rw-r--r--source3/smbd/scavenger.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/scavenger.c b/source3/smbd/scavenger.c
index e6e2878806..122305e04b 100644
--- a/source3/smbd/scavenger.c
+++ b/source3/smbd/scavenger.c
@@ -418,6 +418,9 @@ void scavenger_schedule_disconnected(struct files_struct *fsp)
struct scavenger_message msg;
DATA_BLOB msg_blob;
+ if (fsp->op == NULL) {
+ return;
+ }
nttime_to_timeval(&disconnect_time, fsp->op->global->disconnect_time);
timeout_usec = 1000 * fsp->op->global->durable_timeout_msec;
until = timeval_add(&disconnect_time,