Author: abartlet Date: 2007-07-19 03:57:44 +0000 (Thu, 19 Jul 2007) New Revision: 23960
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23960 Log: Don't destory the 'reason' for terminating the service before printing it. Andrew Bartlett Modified: branches/SAMBA_4_0/source/smbd/service_task.c Changeset: Modified: branches/SAMBA_4_0/source/smbd/service_task.c =================================================================== --- branches/SAMBA_4_0/source/smbd/service_task.c 2007-07-18 21:24:37 UTC (rev 23959) +++ branches/SAMBA_4_0/source/smbd/service_task.c 2007-07-19 03:57:44 UTC (rev 23960) @@ -34,8 +34,10 @@ struct event_context *event_ctx = task->event_ctx; const struct model_ops *model_ops = task->model_ops; DEBUG(0,("task_server_terminate: [%s]\n", reason)); + model_ops->terminate(event_ctx, reason); + + /* don't free this above, it might contain the 'reason' being printed */ talloc_free(task); - model_ops->terminate(event_ctx, reason); } /* used for the callback from the process model code */
