diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-01-27 11:01:07 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2013-01-28 11:07:41 +0100 |
commit | 7e79f7f9477e4641098fe6edec9dfa298114f448 (patch) | |
tree | cdb4913a45d8895da64f8d11072e007c1ff89683 | |
parent | f8890a4cf207f831f9283e22f826af072fa7d163 (diff) | |
download | samba-7e79f7f9477e4641098fe6edec9dfa298114f448.tar.gz |
s4:service_task: prevent a segfault if task->msg_ctx is not initialized yet
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 431692df422c3cac71ca12b7e89296172dfcf684)
-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 4531c3aebca..9a30cd2105b 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; |