changeset 5819:8e7ee4c70a3c

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.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 01 Sep 2014 17:50:59 +0400
parents fe8bafab5b49
children 3377f9459e99
files src/mail/ngx_mail_handler.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/mail/ngx_mail_handler.c
+++ b/src/mail/ngx_mail_handler.c
@@ -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;