diff src/mail/ngx_mail_handler.c @ 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 d5b8ee9f2201
children ec01b1d1fff1
line wrap: on
line diff
--- 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 @@
         return;
     }
 
+    s->signature = NGX_MAIL_MODULE;
+
     s->main_conf = addr_conf->ctx->main_conf;
     s->srv_conf = addr_conf->ctx->srv_conf;