comparison src/core/ngx_resolver.c @ 420:ad0a34a8efa6 NGINX_0_7_22

nginx 0.7.22 *) Feature: the "none" parameter in the "smtp_auth" directive. Thanks to Maxim Dounin. *) Feature: the "$cookie_..." variables. *) Bugfix: the "directio" directive did not work in XFS filesystem. *) Bugfix: the resolver did not understand big DNS responses. Thanks to Zyb.
author Igor Sysoev <http://sysoev.ru>
date Thu, 20 Nov 2008 00:00:00 +0300
parents b4f69f2ef02c
children 670af56a1158
comparison
equal deleted inserted replaced
419:b986babf3f57 420:ad0a34a8efa6
1864 if (n == 0) { 1864 if (n == 0) {
1865 goto done; 1865 goto done;
1866 } 1866 }
1867 1867
1868 if (n & 0xc0) { 1868 if (n & 0xc0) {
1869 n = (n & 0x3f << 8) + *p; 1869 n = ((n & 0x3f) << 8) + *p;
1870 p = &buf[n]; 1870 p = &buf[n];
1871 1871
1872 } else { 1872 } else {
1873 len += 1 + n; 1873 len += 1 + n;
1874 p = &p[n]; 1874 p = &p[n];
1914 if (n != 0) { 1914 if (n != 0) {
1915 *dst++ = '.'; 1915 *dst++ = '.';
1916 } 1916 }
1917 1917
1918 } else { 1918 } else {
1919 n = (n & 0x3f << 8) + *src; 1919 n = ((n & 0x3f) << 8) + *src;
1920 src = &buf[n]; 1920 src = &buf[n];
1921 1921
1922 n = *src++; 1922 n = *src++;
1923 } 1923 }
1924 1924