comparison 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
comparison
equal deleted inserted replaced
5818:fe8bafab5b49 5819:8e7ee4c70a3c
119 if (s == NULL) { 119 if (s == NULL) {
120 ngx_mail_close_connection(c); 120 ngx_mail_close_connection(c);
121 return; 121 return;
122 } 122 }
123 123
124 s->signature = NGX_MAIL_MODULE;
125
124 s->main_conf = addr_conf->ctx->main_conf; 126 s->main_conf = addr_conf->ctx->main_conf;
125 s->srv_conf = addr_conf->ctx->srv_conf; 127 s->srv_conf = addr_conf->ctx->srv_conf;
126 128
127 s->addr_text = &addr_conf->addr_text; 129 s->addr_text = &addr_conf->addr_text;
128 130