[PATCH] ngx_mail_http_auth_module

Filipe Da Silva fdasilvayy at gmail.com
Fri May 10 14:39:35 UTC 2013


Hi,
Please find attach this patch as a mercurial changeset,
It's based on the current trunk version.

Regards,
Filipe


2013/5/8 Valentin V. Bartenev <vbart at nginx.com>

> On Thursday 02 May 2013 18:01:29 Filipe Da Silva wrote:
> > Hello, Nginx developers,
> >
> > I been working recently on NGinx, as part of my job .
> >
> > And I see some small issues as this one :
> >
> > This call to *ngx_close_connection* is useless as it was already made 18
> > lines before in the code .
> > Same code is present in 1.2
> >
> > Regards,
> > Filipe
> >
> > ----
> >
> > diff -r 8222ca034980 src/mail/ngx_mail_auth_http_module.c
> > --- a/src/mail/ngx_mail_auth_http_module.c    Tue Apr 02 12:34:39 2013
> > +0000 +++ b/src/mail/ngx_mail_auth_http_module.c    Thu May 02 15:46:42
> > 2013 +0200 @@ -696,7 +696,6 @@
> >
> >                      p = ngx_pnalloc(s->connection->pool, ctx->err.len);
> >                      if (p == NULL) {
> > -                        ngx_close_connection(ctx->peer.connection);
> >                          ngx_destroy_pool(ctx->pool);
> >                          ngx_mail_session_internal_server_error(s);
> >                          return;
>
> The patch looks good for me. It would be nice if you provide it as
> a mercurial changeset for pushing.
>
>   wbr, Valentin V. Bartenev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20130510/6191ef30/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5198.patch
Type: application/octet-stream
Size: 804 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20130510/6191ef30/attachment.obj>


More information about the nginx-devel mailing list