[nginx] Mail: initialize the "signature" field of ngx_mail_sessi...

Valentin Bartenev vbart at nginx.com
Mon Sep 1 13:51:45 UTC 2014


details:   http://hg.nginx.org/nginx/rev/8e7ee4c70a3c
branches:  
changeset: 5819:8e7ee4c70a3c
user:      Valentin Bartenev <vbart at nginx.com>
date:      Mon Sep 01 17:50:59 2014 +0400
description:
Mail: initialize the "signature" field of ngx_mail_session_t.

Currently it isn't used, but it can be suitable to distinguish
objects stored in c->data.

diffstat:

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

diffs (12 lines):

diff -r fe8bafab5b49 -r 8e7ee4c70a3c src/mail/ngx_mail_handler.c
--- a/src/mail/ngx_mail_handler.c	Mon Sep 01 12:27:38 2014 +0400
+++ b/src/mail/ngx_mail_handler.c	Mon Sep 01 17:50:59 2014 +0400
@@ -121,6 +121,8 @@ ngx_mail_init_connection(ngx_connection_
         return;
     }
 
+    s->signature = NGX_MAIL_MODULE;
+
     s->main_conf = addr_conf->ctx->main_conf;
     s->srv_conf = addr_conf->ctx->srv_conf;
 



More information about the nginx-devel mailing list