comparison src/mail/ngx_mail_pop3_module.c @ 382:984bb0b1399b NGINX_0_7_3

nginx 0.7.3 *) Change: the "rss" extension MIME type has been changed to "application/rss+xml". *) Change: now the "gzip_vary" directive turned on issues a "Vary: Accept-Encoding" header line for uncompressed responses too. *) Feature: now the "rewrite" directive does a redirect automatically if the "https://" protocol is used. *) Bugfix: the "proxy_pass" directive did not work with the HTTPS protocol; the bug had appeared in 0.6.9.
author Igor Sysoev <http://sysoev.ru>
date Mon, 23 Jun 2008 00:00:00 +0400
parents 1c519aff5c0c
children d0f7a625f27c
comparison
equal deleted inserted replaced
381:23d1555141d9 382:984bb0b1399b
181 181
182 } else { 182 } else {
183 size += sizeof("SASL LOGIN PLAIN" CRLF) - 1; 183 size += sizeof("SASL LOGIN PLAIN" CRLF) - 1;
184 } 184 }
185 185
186 p = ngx_palloc(cf->pool, size); 186 p = ngx_pnalloc(cf->pool, size);
187 if (p == NULL) { 187 if (p == NULL) {
188 return NGX_CONF_ERROR; 188 return NGX_CONF_ERROR;
189 } 189 }
190 190
191 conf->capability.len = size; 191 conf->capability.len = size;
211 *p++ = '.'; *p++ = CR; *p = LF; 211 *p++ = '.'; *p++ = CR; *p = LF;
212 212
213 213
214 size += sizeof("STLS" CRLF) - 1; 214 size += sizeof("STLS" CRLF) - 1;
215 215
216 p = ngx_palloc(cf->pool, size); 216 p = ngx_pnalloc(cf->pool, size);
217 if (p == NULL) { 217 if (p == NULL) {
218 return NGX_CONF_ERROR; 218 return NGX_CONF_ERROR;
219 } 219 }
220 220
221 conf->starttls_capability.len = size; 221 conf->starttls_capability.len = size;
234 } else { 234 } else {
235 conf->auth_capability = ngx_mail_pop3_auth_plain_capability; 235 conf->auth_capability = ngx_mail_pop3_auth_plain_capability;
236 } 236 }
237 237
238 238
239 p = ngx_palloc(cf->pool, stls_only_size); 239 p = ngx_pnalloc(cf->pool, stls_only_size);
240 if (p == NULL) { 240 if (p == NULL) {
241 return NGX_CONF_ERROR; 241 return NGX_CONF_ERROR;
242 } 242 }
243 243
244 conf->starttls_only_capability.len = stls_only_size; 244 conf->starttls_only_capability.len = stls_only_size;