diff options
-rw-r--r-- | source4/smbd/service_task.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smbd/service_task.c b/source4/smbd/service_task.c index 4531c3aebc..9a30cd2105 100644 --- a/source4/smbd/service_task.c +++ b/source4/smbd/service_task.c @@ -34,7 +34,7 @@ void task_server_terminate(struct task_server *task, const char *reason, bool fa const struct model_ops *model_ops = task->model_ops; DEBUG(0,("task_server_terminate: [%s]\n", reason)); - if (fatal) { + if (fatal && task->msg_ctx != NULL) { struct dcerpc_binding_handle *irpc_handle; struct samba_terminate r; |