Mercurial > hg > nginx-vendor-current
comparison src/core/ngx_resolver.c @ 668:9fbf3ad94cbf NGINX_1_1_18
nginx 1.1.18
*) Change: keepalive connections are no longer disabled for Safari by
default.
*) Feature: the $connection_requests variable.
*) Feature: $tcpinfo_rtt, $tcpinfo_rttvar, $tcpinfo_snd_cwnd and
$tcpinfo_rcv_space variables.
*) Feature: the "worker_cpu_affinity" directive now works on FreeBSD.
*) Feature: the "xslt_param" and "xslt_string_param" directives.
Thanks to Samuel Behan.
*) Bugfix: in configure tests.
Thanks to Piotr Sikora.
*) Bugfix: in the ngx_http_xslt_filter_module.
*) Bugfix: nginx could not be built on Debian GNU/Hurd.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 28 Mar 2012 00:00:00 +0400 |
parents | f5b859b2f097 |
children | 4dcaf40cc702 |
comparison
equal
deleted
inserted
replaced
667:e0eabdb2bad1 | 668:9fbf3ad94cbf |
---|---|
1838 if (*s != '.') { | 1838 if (*s != '.') { |
1839 *p = *s; | 1839 *p = *s; |
1840 len++; | 1840 len++; |
1841 | 1841 |
1842 } else { | 1842 } else { |
1843 if (len == 0) { | 1843 if (len == 0 || len > 255) { |
1844 return NGX_DECLINED; | 1844 return NGX_DECLINED; |
1845 } | 1845 } |
1846 | 1846 |
1847 *p = (u_char) len; | 1847 *p = (u_char) len; |
1848 len = 0; | 1848 len = 0; |
1849 } | 1849 } |
1850 | 1850 |
1851 p--; | 1851 p--; |
1852 } | |
1853 | |
1854 if (len == 0 || len > 255) { | |
1855 return NGX_DECLINED; | |
1852 } | 1856 } |
1853 | 1857 |
1854 *p = (u_char) len; | 1858 *p = (u_char) len; |
1855 | 1859 |
1856 return NGX_OK; | 1860 return NGX_OK; |