summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/service_task.c2
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;