s4: Patch proposal for bug #7887

Jelmer Vernooij jelmer at samba.org
Fri Jan 14 13:27:56 MST 2011


On Wed, 2011-01-12 at 22:31 +0100, Matthias Dieter Wallnöfer wrote:
> Hi Jelmer,
> 
> here the patch proposal for bug #7887
Thanks.

> diff --git a/source4/web_server/web_server.c
> b/source4/web_server/web_server.c
> index 9531115..b9fdc30 100644
> --- a/source4/web_server/web_server.c
> +++ b/source4/web_server/web_server.c
> @@ -305,6 +305,11 @@ static void websrv_task_init(struct task_server
> *task)
>         model_ops = process_model_startup("single");
>         if (!model_ops) goto failed;
>  
> +       /* startup the esp processor - unfortunately we can't do this
> +          per connection as that wouldn't allow for session variables
> *
^^^ This shouldn't say "esp" but Python.

> +       wdata = talloc_zero(task, struct web_server_data);
> +       if (wdata == NULL) goto failed;
> +
>         if (lpcfg_interfaces(task->lp_ctx) &&
> lpcfg_bind_interfaces_only(task->l
>                 int num_interfaces;
>                 int i;
> @@ -321,25 +326,20 @@ static void websrv_task_init(struct task_server
> *task)
>                                                      &web_stream_ops, 
>                                                      "ipv4", address, 
>                                                      &port,
> lpcfg_socket_options
> -                                                    task);
> +                                                    wdata);
>                         if (!NT_STATUS_IS_OK(status)) goto failed;
>                 }

+1

Cheers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20110114/ed09e50a/attachment.pgp>


More information about the samba-technical mailing list