]> git.kaiwu.me - nginx.git/commitdiff
Mail: initialize the "signature" field of ngx_mail_session_t.
authorValentin Bartenev <vbart@nginx.com>
Mon, 1 Sep 2014 13:50:59 +0000 (17:50 +0400)
committerValentin Bartenev <vbart@nginx.com>
Mon, 1 Sep 2014 13:50:59 +0000 (17:50 +0400)
Currently it isn't used, but it can be suitable to distinguish
objects stored in c->data.

src/mail/ngx_mail_handler.c

index 784111f6e80f406974c43e13c2594d91c8793ac3..57b69b564d703e0244251690c8e80baa089504e5 100644 (file)
@@ -121,6 +121,8 @@ ngx_mail_init_connection(ngx_connection_t *c)
         return;
     }
 
+    s->signature = NGX_MAIL_MODULE;
+
     s->main_conf = addr_conf->ctx->main_conf;
     s->srv_conf = addr_conf->ctx->srv_conf;