[nginx] Mail: removed surplus ngx_close_connection() call.

Valentin Bartenev vbart at nginx.com
Wed May 15 20:36:00 UTC 2013


details:   http://hg.nginx.org/nginx/rev/2220de0521ca
branches:  
changeset: 5214:2220de0521ca
user:      Filipe Da Silva <fdasilvayy at gmail.com>
date:      Thu May 09 10:54:28 2013 +0200
description:
Mail: removed surplus ngx_close_connection() call.

It is already called for a peer connection a few lines above.

diffstat:

 src/mail/ngx_mail_auth_http_module.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r 822b82191940 -r 2220de0521ca src/mail/ngx_mail_auth_http_module.c
--- a/src/mail/ngx_mail_auth_http_module.c	Wed May 15 15:04:49 2013 +0400
+++ b/src/mail/ngx_mail_auth_http_module.c	Thu May 09 10:54:28 2013 +0200
@@ -699,7 +699,6 @@ ngx_mail_auth_http_process_headers(ngx_m
 
                     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;



More information about the nginx-devel mailing list