comparison src/mail/ngx_mail.c @ 406:6ebbca3d5ed7 NGINX_0_7_12

nginx 0.7.12 *) Feature: the "server_name" directive supports empty name "". *) Feature: the "gzip_disable" directive supports special "msie6" mask. *) Bugfix: if the "max_fails=0" parameter was used in upstream with several servers, then a worker process exited on a SIGFPE signal. Thanks to Maxim Dounin. *) Bugfix: a request body was dropped while redirection via an "error_page" directive. *) Bugfix: a full response was returned for request method HEAD while redirection via an "error_page" directive. *) Bugfix: the $r->header_in() method did not return value of the "Host", "User-Agent", and "Connection" request header lines; the bug had appeared in 0.7.0.
author Igor Sysoev <http://sysoev.ru>
date Tue, 26 Aug 2008 00:00:00 +0400
parents 984bb0b1399b
children a094317ba307
comparison
equal deleted inserted replaced
404:59e324e4d6d3 406:6ebbca3d5ed7
356 for (i = 0; i < imip->naddrs; i++) { 356 for (i = 0; i < imip->naddrs; i++) {
357 imip->addrs[i].addr = in_addr[i].addr; 357 imip->addrs[i].addr = in_addr[i].addr;
358 imip->addrs[i].ctx = in_addr[i].ctx; 358 imip->addrs[i].ctx = in_addr[i].ctx;
359 359
360 text = ngx_pnalloc(cf->pool, 360 text = ngx_pnalloc(cf->pool,
361 INET_ADDRSTRLEN - 1 + sizeof(":65535") - 1); 361 NGX_INET_ADDRSTRLEN + sizeof(":65535") - 1);
362 if (text == NULL) { 362 if (text == NULL) {
363 return NGX_CONF_ERROR; 363 return NGX_CONF_ERROR;
364 } 364 }
365 365
366 len = ngx_inet_ntop(AF_INET, &in_addr[i].addr, text, 366 len = ngx_inet_ntop(AF_INET, &in_addr[i].addr, text,
367 INET_ADDRSTRLEN); 367 NGX_INET_ADDRSTRLEN);
368 368
369 len = ngx_sprintf(text + len, ":%d", in_port[p].port) - text; 369 len = ngx_sprintf(text + len, ":%d", in_port[p].port) - text;
370 370
371 imip->addrs[i].addr_text.len = len; 371 imip->addrs[i].addr_text.len = len;
372 imip->addrs[i].addr_text.data = text; 372 imip->addrs[i].addr_text.data = text;